Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
Coding, syntax & commands
>>With all of your suggestions and responses I'm now completely baffled. So, I'm going to try to be as explicit as possible with this next attempt :) I'm trying to replicate what I think you are suggesting I do.
>>
>>I've created a project called Testprocs. In it I have two programs in the "Code" tab as follows:
>>
>>1) the main startup program is named "testprocsmain.prg" and has:
>>
>>PROCEDURE setprocs
>> SET PROCEDURE TO testprocs.prg ADDITIVE
> if "TESTPROCS"$set("Procedure")
>> WAIT WINDOW NOWAIT "Procedures set..." TIMEOUT 4
> else
> wait wind "Procedures NOT set..."
> endif
>>ENDPROC
>>
>>PROCEDURE sayit2
>> WAIT WINDOW TIMEOUT 4 "Sayit2 Procedure was called..."
>>ENDPROC
>>
>>2) another program named "testprocs.prg" that has:
>>
>>PROCEDURE sayit
>> WAIT WINDOW TIMEOUT 4 "Sayit Procedure was called..."
>>ENDPROC
>>
>>
>>I build the project as a "Win32 executable" named Testme.exe.
>>
>>From the VFP command window, I try:
>>
>>"DO setprocs IN Testme.exe" (without quotes), and the wait window appears indicating that the procedures are set.
>
>Next try "DO sayit" (without quotes, NO in clause)
Thanks, I figured it out before your last hint above.
The thing is, am I really saving any resources this way? What's the difference if I call a "stub" in exe1 from exe2 versus placing the SET PROCEDURE... command in exe2?
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