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

What error are you getting?
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform