Information générale
Catégorie:
Codage, syntaxe et commandes
>is there anyway to make a .prg file interactive? Just a simple .PRG file, nothing fancy. What I want to do is, to ask the user to insert a number (just like cin>>variable in C) and store that number in a variable.
You should create a form with a TextBox control on it, and then you can do something like:
MyVariable = inputform.textbox1.value
And that should hold ya'. If you don't want to create the form yourself, Rick Borup and I both have files here that do this for you and the functinoality is included (finally) in VFP7.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement