Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Implementing a 'Command Window'
Message
De
11/12/1997 15:52:10
 
 
À
11/12/1997 15:39:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00065394
Message ID:
00065399
Vues:
36
>I'm trying to use a command window to run my procedures within an aplication.
>Something like the 'command window'. I'm dabbling with an edit box. Any suggestions

You can use an edit box and macro substitution.
Capture the keys in the editbox's keypress and watch for enter (nkeycode = 13). If nkeycode = 13 then
mycommand = this.value
&mycommand
this.value = space(0)

It is important to have an error handler for this, or once your command produces an error, the control will start acting finicky.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform