Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
Coding, syntax & commands
>I have a VFP9 exe (let's call it myVFP.exe) sitting in the same folder as my project file (let's call it myProject). myVFP.exe has a bunch of procedure files built into it and I'd like to call one of those procedures (let's call it myProcedure) from a form in myProject. The help file says that I should be able to do this using the syntax, "DO ProgramName1 | ProcedureName [IN ProgramName2] [WITH ParameterList]". So, naturally I tried the following command in my form's load event:
>
>DO myProcedure IN myVFP.exe WITH "someparam"
>
>and I receive "Procedure 'myProcedure' not found". The help file says, "If...the specified procedure isn't in the program file, the message "Procedure is not found" appears". I'm thinking that the latter message is kinda that same as what I receive. So, this begs the question, why do I get this error? I know for a fact that myVFP.exe has that procedure built into it.
>
>Is this not possible or am I doing something wrong. Any assistance is greatly appreciated.
I sometimes used this pattern with apps - so I guess it should work. Calling procs is easier than using objects via createobject(). You are sure it is a top level proc ? Otherwise Naomi's guess would be my next question...
regards
thomas
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only