I realize you may be using shorthand for the actual code but if you're trying 
to use the RETURN <object> syntax to avoid the setfocus restrictions, you will 
need to use the full object hierarchy (i.e. RETURN 
thisform.mycontainer.mygrid.mycolumn.text1). 

BTW I have used this tip quite successfully to put the focus on a control other 
than the next one in the container TAB order.

--
rk

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Kurt Wendt
Sent: Wednesday, June 19, 2013 1:33 PM
To: [email protected]
Subject: RE: A Focus Problem - Not a Lack of Concentration!

Nope - the SetFocus - I only put it into the LostFocus Methods of Style & Color 
fields. When I put it in there - CRASH - take it out - No Crash!

I looked at the link below - and I tried to follow this one suggestion - his 
alternate to SetFocus - with a command like (in the end of the Valid):
        RETURN ThisForm.Text1

Now - previously I was trying something similar - using just the number 1 - as 
was talked about in a previous thread here. And, it didn't work. So - I tried 
the suggestion above - putting in the Object name as shown above - and, of 
course - guess what!?!? It didn't work!

Man is this frustating. So - for now - just so I could Move On - I did the 
Kludge. At the end of each valid - for Style & Color - I just turned Enabled to 
False for those Text Boxes - and sure enough - that worked. Problem is - if 
user wants to go back and Edit those fields again - they can't! But, I may 
worry about that at a later time...

-K-


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD0442280B39D4D@ACKBWDDQH1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to