Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data type mismatch in cbizobjform requery
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00199975
Message ID:
00200009
Vues:
12
>Hi all, I am getting a data type mismatch error in the cbizobjform requery method at the following line of code:
>
>IF IIF(goApp.lCDBK30, this.oBizObj.Requery() = REQUERY_SUCCESS, ;
> This.oBizObj.Requery(tlDoNotRequeryChildren) = REQUERY_SUCCESS)

>goApp.ICDBK30 is .F. It looks like I may not the include file set up correctly (maybe). The include file for this class is framincl.h.

If goApp.lCdbk30 is False, you're obviously running the second half of the immediate IF. First check to see if CBizObjForm has "FramIncl.h" specified as its include file. Next, make sure that your business object's Requery() method is returning a numeric value. If you have overridden the method without returning the value from the default code, you may be returning True. For example, here's an example of overriding the Requery method:

Requery()

/// my code

lnRetVal = DODEFAULT()

/// my code

RETURN lnRetVal

Remember, even if there's only a single space character in a method, you're overriding the default parent method.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform