Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Modal Child Dialog
Message
From
17/05/2002 17:08:33
 
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00657702
Message ID:
00658446
Views:
30
Hi Mel:

>Actually, it was CodeMine tech support that suggested I put the code there in the FieldValid().

Wow. That's not like them.

>So, it is OK to verify to see if a zip exist in the FieldValid() method, but the problem is calling another Form there - correct?

Well, again it can't do any harm so long as you clean up after yourself and just return a boolean value.

>Any other suggestion as to where I might do this to have the functionality I am looking for?

Well, I don't know your data/logic design so I can't really say what would be the optimum way to achieve your goal. Calling forms from valids is what we used to do in Foxpro 2.x and it was quite legitimate to do so. However, times change <s>. Maybe a way to get around this problem without changing your existing design to any extent is as follows. You could add a form property like thisform.lZipNotFound (or even subclass the control and add a similar property). I think I prefer the form property. In your fieldvalid, if the zip doesn't exist, simply set thisform.lZipNotFound to True and return True too. This will allow the control the lose focus but will record the problem by setting thisform.lZipNotFound to True. Then in the control's lostfocus event method, check the value of thisform.lZipNotFound and if it is True, call your modal child form from the lostfocus. You shouldn't experience the same problem you encountered in the valid in the control's lostfocus.

>You have been a great help, and I am thankful for that.

Your welcome <s>.
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform