Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use Function as Object method - BITAND()
Message
De
01/02/2003 17:30:30
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Use Function as Object method - BITAND()
Divers
Thread ID:
00748038
Message ID:
00748038
Vues:
54
Hi All

I am converting some procedural code to object, and hit a snag.

The following lines runs correctly when it is a delcared function in a .prg.

Called By: DecodeErrors(FF_GetLastErrorCode(.f.))
**Snipet of function code later in the same prg.
Function DecodeErrors
Parameter FFError
Msg = ""
Msg = Msg + IIF( BITAND(FFError, BAD_DBF_VERSION_ID) != 0, "Version ID"+chr(13), "" )

However, when placed into an object method like this, it returns an error.

Calling code from another method of the custom object class:
lcMsg = This.DecodeErrors(FF_GetLastErrorCode(.f.))

**Snipet of method THIS.DecodeErrors
LPARAMETER FFError
Msg = ""
Msg = Msg + IIF(BITAND(FFError, BAD_DBF_VERSION_ID) != 0, "Version ID"+chr(13), "" )

There is probably something obvious, but I am not seeing what it is. Appreciate any thoughts.

Thanks
Don Lowrey

PS For those using FoxFix, you will recognize the call to FF_getLastErrorCode as a FoxFix dll. In both of the above instances, the .dll is loaded earlier in the code execution.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform