>Hi Fabio,
>
>>try
>>
>>IF VARTYPE(loForm)='O'
>> WITH loForm
>> * Set some properties here
>>
>> ENDWITH
>>
>> loForm.Show
>>ENDIF
>>
>
>You've cracked it! thisform.release works fine now. Looks like WITH..ENDWITH is ok for setting property values, but the show command should be prefixed with the object reference.
>
>Many thanks,
>Alan
The with/endwith block creates an object reference that Release() can't release !