>Hi there
> I created a form with a Edit Box in it to Emulate Foxpro Command window in my Application. The form is called from
>"Development" menu with "Do form" method.
> 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:
>
>a=5 (press enter)
>?a (press enter)
>
> Then I got error message saying "Variable not found".
> In the form Keypress (Case Keycode=13), I validate the expression then use &lcommand to execute it.
> It works fine on my table sql statements.
>
> I am new to Visual Foxpro. Much appreciated if can help
>
> My Email is wtian@csc.com.au
Not really sure what you're trying to do here. If you want to look at variables for debugging purposes, look at the manuals and on-line help for the debugger, which is quite powerful.
If you truly need a command-window emulator, I believe there are a couple of free ones available in the Files section here.
If you want to be able to build and execute commands on-the-fly, and you are using VFP6 with SP3, look into the COMPILE command which allows generation and compilation of code in a run-time environment, without the Command window.
Also, be sure to check out macro expansion capabilities ("&" command) which offer capabilities not found in many other languages.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up