Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to get user input?
Message
From
03/11/1998 18:05:06
 
 
To
02/11/1998 23:57:26
Larry Long
ProgRes (Programming Resources)
Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00153811
Message ID:
00154145
Views:
17
>I am looking for suggestions on the best way to get user input while in the middle of a method. What I want to do is pop up a form that is in the formset so the user can add information, in this case an item id, if a certain condition is met while I am in a method. Can I just "ACTIVATE WINDOW inputform"? I need the rest of the method to finish after the user enters the info.

You need to create a modal dialog and call it from your method.

DO FORM GetInput TO lnRetVal

Your modal form's unload method can return any value in the form, and the value will be stored to lnRetVal. In you case, you would probably want a single text box with an ok button, and in the unload of the form:

RETURN THISFORM.mytext.Value
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform