GregTomkins
Active Member
Code:
FUNCTION getstat RETURNS LOGICAL (p_acct AS CHAR):
RETURN TRUE.
END.
FIND FIRST foo
WHERE foo.acct = "8"
AND getstat(foo.acct) = TRUE
NO-ERROR.
DISP AVAIL foo.
Assuming there is a 'foo' with a 'acct' value of '8', the DISP should return YES. For me, it returns NO. If I remove the 'getstat' call, it works properly. Any thoughts?