Xbrowse error with setbackground

Post Reply
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Xbrowse error with setbackground

Post by Richard Chidiak »

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
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Xbrowse error with setbackground

Post by nageswaragunupudi »

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

G. N. Rao.
Hyderabad, India
Post Reply