evaluate the "it" variable in an external
Mark Wieder
mwieder at ahsoftware.net
Sun Dec 21 15:57:27 EST 2003
Correcting my own post:
tested:
void RevClipsAsk(char *args[], int nargs, char **retstring, Bool *pass, Bool *error)
{
int retval;
char *actualResult="test";
SendCardMessage("put revClipsAsk() into global clipsResult", &retval);
actualResult = GetGlobal("clipsResult", &retval);
*pass = False;
*error = False;
*retstring = istrdup(actualResult);
}
from Transcript:
function revClipsAsk
ask info "Your input:" titled "CLIPS input"
if it <> empty then
put it into clipsResult
return it
else
put the result into clipsResult
end if
return the result
end revClipsAsk
More information about the use-livecode
mailing list