Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
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