>>My regular trick goes like this:
>>
>>
ox=createobject('form')
>>with ox
>> .windowstate=2 (or whichever means maximized)
>> report form (cFrxName) preview window (ox.name)
>> .release
>>endwith
>
>Dragon,
>
>I've run into problems when I have a .Release inside of a WITH/ENDWITH. It's really inconsistant. Sometimes it works OK, sometimes it doesn't (no error, but also no release), and sometimes I've seen C...5 errors. I just make it a habit to never do that anymore.
I didn't encounter any problems with this (probably because this is a rarely used thing - most reports here are Crystal), but thanks for the warning - I'll fix the code immediately.