Error base/44 on TcBrowse using COLORS statement

Post Reply
giobbi
Posts: 6
Joined: Fri Apr 28, 2006 3:14 pm

Error base/44 on TcBrowse using COLORS statement

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply