Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement