Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stumped again...RETURN not Returning
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Stumped again...RETURN not Returning
Divers
Thread ID:
00484841
Message ID:
00484841
Vues:
42
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
Fil
Voir

Click here to load this message in the networking platform