Hi Ian
>Given that the error is a type mismatch the #Define is working or you have a variable named File_Ok defined. My guess is that either the return value of the parent method is not numeric, or not specified at all which would cause it to be logical.
>
>Just check the value of lnRetVal after the DoDefault call and it should be clear.
Thanks I missed that one completely, I check the base classes and yes somewhere in the framework is has this
LPARAMETERS tnRetVal
RETURN
thus like you said converting the value to logical.
Thanks a lot.