>Thanks for the heads up, Ed. I knew it...
>
>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
>
Creating all variables as public is a good way to smash things up in a hurry. I'd suggesat downloading one of the numerous classes that already implement a Command Window emulator; writing a parser that works properly, enforces scoping properly, and doesn't smash up is non-trivial.
As far as assigning values, there are lots of other ways; SCATTER, ADIR(), ACOPY() SAVE TO/RESTORE FROM, PUBLIC, LOCAL - the list goes on and on.