>I have a VFP program that contains an encryped login sequence and a form for the admin to add/edit/delete users.
>When a user logs in to this program, I validate the user and then want to execute a non-VFP program, and to pass it three parameters, i. e. userID, admin status, and a validation to allow the program to execute only after passing through the VFP program.
>My problem is passing the parameters to the new program (one written in C++) and then totally exiting the VFP program.
>This is not for =shellexecute() because I do not want the user to return to my program upon exiting.
>What is the best method for passing the parameters upon doing the RUN /N anotherprog.exe?
Don't use RUN; you can spawn an executable and immediately quit the VFP application using the API_APPRUN class in the files section.