Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use Function as Object method - BITAND()
Message
From
01/02/2003 17:30:30
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Use Function as Object method - BITAND()
Miscellaneous
Thread ID:
00748038
Message ID:
00748038
Views:
53
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.
Next
Reply
Map
View

Click here to load this message in the networking platform