>I don't understand what happens here. My test function should return false. Why I got a true?
>
>x = CREATEOBJECT("dataaccesslayer.cAccessTablesDBF")
>?x.fxGetTableXML()
>&& x returns "wrong", it should return "right"
>
>
>DEFINE CLASS cAccessTablesDBF AS session OLEPUBLIC
>
>FUNCTION test() as Boolean
>RETURN .f.
>ENDFUNC
>
>FUNCTION fxGetTableXML() as String
>IF test()
>? "wrong"
>ELSE
>? "right"
>ENDIF
>ENDFUNC
>
>ENDDEFINE
Marc,
Did you mean:
IF THIS.test()
? "wrong"
ELSE
? "right"
ENDIF
Cetin