Page 1 of 1

error in treport

Posted: Fri Oct 20, 2006 3:38 pm
by Gale FORd
In the lates FWH there is an error in tReport():new() when the device is not defined

if Empty( ::oDevice:hDC )
return nil // <-- this is an error
else
::lCreated := .t.
endif

so I changed code to

if Empty( ::oDevice:hDC )
::lCreated := .f.
return Self
else
::lCreated := .t.
endif

Is there anything else I need to do?

Posted: Sat Oct 21, 2006 6:46 pm
by Antonio Linares
Gale,

It looks as a right fix, thanks.

Do you get any error with it ?