FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour error in treport
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
error in treport
Posted: Fri Oct 20, 2006 03: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?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
error in treport
Posted: Sat Oct 21, 2006 06:46 PM

Gale,

It looks as a right fix, thanks.

Do you get any error with it ?

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion