Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Emulating Visual Foxpro Command Window
Message
From
03/08/2000 10:06:25
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00399066
Message ID:
00400339
Views:
20
Nadya,

>Anyway, it's sill not a Command Window Emulator. I was thinking about this problem at home and it seems to me, that if we want to emulate Command Window, e.g. pressing Enter, execute the command, it should declare variables as public, e.g. :
>User types in "Command Window Emulator"
> a=5 and presses Enter.

>Our emulator makes it as 2 lines of code:
>Public a
>&lcLine

>AFAIK (correct me, if I'm wrong) there are only two ways to assign value to a variable:
> store 7 to a,b,c
> or a=7

There are also a lot of other commands that creates variable and arrays: for example
- SUM ... FOR ... TO varname
- ADIR

etc.

Maybe you should look at the solution I posted yesterday (what's new link). It makes it possible to have your own command window within your application. The command window can be handled like any other form in your application.

With this solution the variable still are not created publicly, but since the commands are executed at the same level as the READ EVENTS they all stay in scope (they are declared privately).

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform