Thanks Hilmar and Sergey. I will play with this a little and see what I can do.
>Would this work for you?
>
>ACTIVATE WINDOW Command
>lcCmd = "Modify Command Test"
>KEYBOARD (lcCmd + "{ENTER}")
>
>
>>I would like to be able to add code in the command window like VFP does when I open a class from the project. I have looked at Foxtools and so far have had limited success making this work.
>>
>>_WFindTitl("Command") returns the wrong window handle.
>>_WONTOP() works when I run the program from the command window.
>>_WPutStr(bb,"This is a test") works but the line won't stay.
>>