Page 1 of 1

Error base/44 on TcBrowse using COLORS statement

Posted: Fri Jan 05, 2007 9:29 am
by giobbi
Hi, I tried to add the COLOR statement on DBF03.prg original fwh\sample in one of the ADD COLUMN lines.

This is the part I modified (btw i also cut off the ADS part since i got a compile error):

ADD COLUMN TO BROWSE oBrw ;
DATA clients->name ;
COLORS RGB(1,1,1) , RGB(192,192,192) ; //new line by Giobbi
HEAD "Nombre" ;
OEM WIDTH 50

since into my programs I use intensively this option.

I got this error:

Error BASE/44 Assigned value is wrong class: TCCOLUMN:BCLRFORE
[...]
Called from: => TCCOLUMN:_BCLRFORE(0)
Called from: dbf03.prg => TCCOLUMN:NEW(0)
Called from: dbf03.prg => CLIENTSBROWSE(213)

I can't get the rid of it, does anybody can help me?
cheers,
Giobbi

Posted: Fri Jan 05, 2007 9:59 am
by Antonio Linares
Giobbi,

Please modify class TCColumn at source\classes\tccolumn.prg and remove all "AS ..." clauses.

Also, in order test samples\dbf03.prg, you have to copy dbf01.rc dbf03.rc and modify TWBrowse inside it into TCBrowse.