>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