Walter Meester
HoogkarspelNetherlands
General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only