error in treport

Post Reply
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

error in treport

Post 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?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Gale,

It looks as a right fix, thanks.

Do you get any error with it ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply