General information
Category:
Coding, syntax & commands
Title:
Stumped again...RETURN not Returning
Okay - this is really confusing to this novice...
I've got two PRG's. The first one (CALCPPO.PRG) calls the other (CHECKMODIFIER.PRG) like this:
local llDo26
llDo26 = .f.
llDo26 = CheckModifier("26", "71011")
if llDo26
messagebox('26 ok')
else
messagebox('26 not ok')
endif
The CheckModifier program is supposed to do some checking and return a .t. or a .f. to indicate whether or not to continue the process (the messagebox stuff is in there for testing only). Since that wasn't working properly, I was testing my logic and placed a return .t. right after my parameter statement in CheckModifier - like this:
parameters ModifierToCheck, lnCodeVal
retutn .t.
It turns out llDo26 is always .f. - even after I changed CheckModifier to return .t. - any ideas?
Thanks.
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