Richard, you have to have a third clause in an IIF() statement, so .T. is as good as anything. Basically, it's saying if QueryUnload returns .F., don't do anything.
Barbara
>Thanks for your input Barbara and David. I'll move my cleanup to the queryunload method. BTW the native framework in VFP6 uses something like:
>
>IIF(Thisform.QueryUnload(), Thisform.Release(), .T.)
>
>I'm not sure why they return .T. is the QueryUnload fails.