Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Emulating Visual Foxpro Command Window
Message
From
01/08/2000 01:16:01
 
 
To
31/07/2000 19:56:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00399066
Message ID:
00399126
Views:
22
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform