Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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.
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