Hey Rafael - thanks SO Much for your input. I hadn't thought about the
LostFocus method - and maybe that's where I need to put some of my
attention. 

I agree w/U on all points. If a Kludge works - maybe I should just leave it
(albeit w/Remarks - as I also agree - making future changes and letting
others know what you did IS Important!). I got my boss on my case to make
major movement forwards on this new system. And, the longer I get stuck on a
particular problem - the more it holds up making actual progress!

I shall keep your suggestions in mind - try some things out - and hopefully
get back to Forwards Movement on this project.

-K-

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Rafael
Copquin
Sent: Wednesday, June 19, 2013 11:28 AM

Very often I run into the same problem. Here's what I do:

After validation in a textbox valid event (the next event will be 
lostfocus). Then in the lostfocus event I put:

thisform.nextcontrolwherefocusshouldbe.setfocus

If validation comes from a lookup form, the code is this:

** call the lookup form
do form mylooupform to whatevervalueisreturnedfromthelookupform
** more code here to do whatever the returned value should be used for
thisform.nextcontrolwherefocusshouldbe.setfocus

And if for some reason focus goes to a control where it should not go, 
by all means, use your kludge. I do it when necessary, many hairs are 
prevented from falling off my head and I go on to the next issue, 
whatever it may be.

Not always doing things "the right way" work the way you want them to. 
The important things are:

a) your program should do what it is supposed to do
b) you use your time productively
c) the code you write can be easyly followed up for future changes (make 
notes in your code explaining your kludge)

Rafael Copquin



El 19/06/2013 11:52 a.m., Kurt Wendt escribió:
> I'm going kinda Crazy here with some strange Focus problems on this
Form...


_______________________________________________
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/D64C7B72131F49C094BCAA6FDAABD156@Programming2
** 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