Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Emulating Visual Foxpro Command Window
Message
De
01/08/2000 01:16:01
 
 
À
31/07/2000 19:56:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00399066
Message ID:
00399126
Vues:
11
>The problem is it can't see any varibles I created in the Edit BOx. For example, If I type in the following two commands:

Thats because the variables are being created as PRIVATE variables in the KeyPress of your Edit Box, so they go out of scope by the time you execute the next command.

The easiest would be too type in:

PUBLIC a
a = 5
?a


If you wanted to get fancy, my suggestion would be to create all the variables as PUBLIC in your emulator, just like the real command window does. But, unless there's a simple way I don't know about, it could get hard. What you'll have to do check to see if your command was a STORE (then parse out the variable name and make it PUBLIC if it doesn't already exist), or if the second word is "=", and do pretty much the same thing.

Though, it leaves so ALOT of openings (like when ADir() creates the array, ect.)

There are some files here in the UT that are Command Window emulators, I'm not sure how they handle this, cause I've never used one.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform