error in treport

error in treport

Postby Gale FORd » Fri Oct 20, 2006 3:38 pm

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?
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Postby Antonio Linares » Sat Oct 21, 2006 6:46 pm

Gale,

It looks as a right fix, thanks.

Do you get any error with it ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 61 guests

cron