Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I open from from a Text Box
Message
From
30/06/1997 17:07:10
 
 
To
29/06/1997 20:46:41
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00038056
Message ID:
00038174
Views:
40
You might want to consider moving the logic to the lostfocus event of the textbox. It's all to easy to get trapped in a valid clause and more it more it seems M$ is trying to move us away from there. Nagivation to other controls is easier from the lostfocus event since you cannot issue object.setfocus() from valid.

>It works really well. Thank you very much Paul.
>
>Jim Si
>
>>>
>>> I have a text box. I need to validate the value entered. If the value
>>> entered is invalid. I need to open a form containing four table options
>>> for a user to select.
>>>
>>> First I used DO FORM myform in the text box valid method. But after it
>>> opens the form, the focus returns to the text box and the form hides behind
>>> the screen.
>>>
>>> Second try I did is that I build the formset which contain both the data
>>> entry form and pick table option from. I tried in both valid method and
>>> lostfocus method, put in setfocus method of an object on the pick table
>>> option form. The pick table option form just flash and focus returns the
>>> text box.
>>>
>>> What should I do to make the pick table option form staying on the top of
>>> the data entry form?
>>
>>1) ensure that the picklist form is Modal
>>2) use the command:
>>
>>DO FORM {whatever} TO VarName
>>
>>to put the results of the form in a variable name.
>>
>>/Paul
Gary
Helping Make Ideas Reality
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform