>>>I have a vfp program (LBP.exe) that I want to run from within another vfp .exe (MAIN.exe). I have a form in Main.exe that has a command button with the click method set to:
>>> * -- stuff --
>>> do lbp.exe
>>> * -- stuff --
>>>
>>>when I run just the form (from the project) it goes and runs LBP, then when I exit LBP, it returns to Main. This is good... that's what I expect... When I compile Main and run Main.exe... clicking on the button starts LBP AND THEN CLOSES LBP and returns me back to main. What's happening???? The reason I have two .exe's is because LBP.exe has to stand alone... MAIN.exe is an umbrella program that will eventually call more .exe's.
>>>
>>>Am I missing something here??? Any help is greatly appreciated.... thanks...
>>
>>I never run a VFP exe from other VFP exe. Anyway, you can try the RUN command (same thing as "!" command). And you maybe need to do it using a pif file (from the pif file you can set memory, graphics, etc. requirements).
>>
>>Vlad
>
>
>if they are two separate .exes, you'll need to have a read events in each...
Thanks.. it works with '! /n', but it starts a new session of VFP.. to slow... I do have a read events in each .exe.... Should I class the LBP.exe and instantiate it from main???? That's something else I don't know how to do... any suggestions on doing this??? thanks..