General information
Category:
Coding, syntax & commands
Title:
Use Function as Object method - BITAND()
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only