FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Xbrowse error with setbackground
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Xbrowse error with setbackground
Posted: Sat Aug 10, 2013 04:43 AM

Good morning

Xbrowse errors with the setbackground command when using the "fields" syntax

redefine xbrowse obrw fields..... gives an error

It works ok with the "Columns" syntax

I use obrw:SetBackGround(gradient { { 0.20, 14198567, 16117445 }, { 0.20, 16117445, 14198567 } },.f.)

This is the error

Error description: Error BASE/1004 No exported method: EVAL
Args:
[ 1] = U

Stack Calls

Called from: => (b)EVAL( 0 )
Called from: C:\CBATI32\xbrowse.prg => (b)TXBROWSE( 417 )
Called from: C:\CBATI32\xbrowse.prg => TXBROWSE:KEYCOUNT( 0 )

in my copy of xbrowse (13.02) it corresponds to this line

METHOD KeyCount() INLINE ( ::nLen := Eval( ::bKeyCount ),;
iif(::oVScroll != nil ,;
( ::VSetRange( 1, ::nLen ), ::VUpdatePos() ), ),;
::nLen )

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse error with setbackground
Posted: Sat Aug 10, 2013 05:58 AM

Probably bKeyCount was never initialized.
Can we see a small sample reproducing the problem?

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion