Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stumped again...RETURN not Returning
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Stumped again...RETURN not Returning
Miscellaneous
Thread ID:
00484841
Message ID:
00484841
Views:
40
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
Map
View

Click here to load this message in the networking platform