Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Codebook Question: lnRetVal
Message
De
18/11/1997 16:29:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00060900
Message ID:
00061029
Vues:
41
>Anyone else here fairly familiar with Codebook? I've been gettin some strange errors in some of my business objects Requery methods. Somewhere along the way lnRetVal, which should be 0 or 1, is getting changed to a .T. So, once it is compared with REQUERY_SUCCESS (which is equal to 1) I get a "Data type mismatch" error. I've tried stepping throught the code but where it is being changed eludes me.
>
>This is probably a long shot, but has anyone else seen this?
>Heh, I would post this on the Ed Leafe's Codebook web site, but it's been down for two days.

You probably have code in the Requery of your bizobj and the Requery method is now unable to return it's original numeric value. What you need to do is add lnRetVal=DODEFAULT() to your Requery code and then Return lnRetVal. The better solution is to use Ed's ebizobj which has pre and post method hooks. That means you could put your code into the BeforeRequery or AfterRequery method, instead of the Requery method.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform