Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to get user input?
Message
De
03/11/1998 18:05:06
 
 
À
02/11/1998 23:57:26
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00153811
Message ID:
00154145
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform