Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
Coding, syntax & commands
>Well I'm stumped already. I compiled a bunch of functions and procedures into an exe as a test. I tried to call a procedure using DO myProc IN myTest.exe WITH 1. While this worked from the command window (i.e., no crash or errors), my problem is that the procedure is supposed to return a string. How do I get the returned value with a DO ... IN ... syntax?
Most of my code works with objects, and you if you have a little helper function in the app returning the objects
function appobject(toRefReturn, tcClass, tcOptClasslib)
toRefReturn = newobject(tcClass, tcOptClasslib)
do appobject in xx.app with loRet, (m.tcClass), (m.tcOptClasslib) && I standardize on return value as 1. par for that pattern
or you set proc to the app and can call similar functions (which must have a distinct name then! One of the few kinks in this approach, read the help about it - fpw was smarter here) returning values. With the objects you work the usual way, calling methods and setting properties.
HTH
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