>>How can I prevent form release or unload ?
>>
>>Is a button the only way ?
>>
>>I put the code below release or unload but could not achieve what I wanted
>>
>>Doesn't "return" abort form unload event ?
>>
>>IF thisform.tested = 0
>> = MESSAGEBOX("Not tested yet")
>>RETURN
>> endif
>
>Put your conditional check in the form's queryunload() :
Moises,
>
>IF thisform.ReleaseType = 0 and [ my condition ]
> nodefault
> return .f.
>ENDIF
>
If it's not broken, fix it until it is.
My Blog