I just tried James sample using FWH 8.01 and it seems to work fine here.
EMG
I just tried James sample using FWH 8.01 and it seems to work fine here.
EMG
Enrico,
>I just tried James sample using FWH 8.01 and it seems to work fine here.
Thank you for reporting that.
James
James Nice Sample
we compile with fwh 2.7 and xHarbour and works well
with only .dbf
with .dbf + Index
with .dbf + Index + Filter
Thanks
att
Wilson,
>we compile with fwh 2.7 and xHarbour and works well.
Thanks for reporting. This means it should work even with older versions of XBrowse.
James
Hi James,
I fix I test. I add ::oBrw:Refresh() and work fine.
So your sample work fine.
Regards,
Richard
Richard,
>I fix I test. I add ::oBrw:Refresh() and work fine.
Good news. Thanks.
James
James Bott wrote:Richard and NageswaraRao,
I am at a loss as to why it isn't working for you. I'm thinking it must be differences in TXBrowse. NageswaraRao, didn't you say in another message thread that you are using a modified TXBrowse? Could you be linking in this instead of the standard FWH version?
I am using xHarbour, are you?
James
James Bott wrote:Richard and NageswaraRao,
I am at a loss as to why it isn't working for you. I'm thinking it must be differences in TXBrowse. NageswaraRao, didn't you say in another message thread that you are using a modified TXBrowse? Could you be linking in this instead of the standard FWH version?
I am using xHarbour, are you?
James

NageswaraRao,
I see the problem you described. I will have to think about a solution.
>I still feel there is no substitute for the Browse calling the color codeblock with the visible row number as a parameter as we earlier discussed about tcbrowse class.
This does not seem so easy. In addition to the visible row number you would also need to know which color the first row was in order to figure out which color to make the current row. So you would need var to keep track of this and you would have to update it each time the first visible row was a new record. Then you would have to calculate the color of the current row based on the color of the first row and the row number of the current row.
James
James Bott wrote:NageswaraRao,
This does not seem so easy. In addition to the visible row number you would also need to know which color the first row was in order to figure out which color to make the current row. So you would need var to keep track of this and you would have to update it each time the first visible row was a new record. Then you would have to calculate the color of the current row based on the color of the first row and the row number of the current row.
James
Hello NageswaraRao,
was this the solution you suggested?
Best regards,
Otto
oBrw:bClrStd := { || Colores() }
//-----------------------
STATIC FUNCTION Colores()
LOCAL aCol:={}
IF (ordkeyno()) % 2 == 0
aCol:={CLR_BLACK, RGB(193,221,255) }
ELSE
aCol:={CLR_BLACK, RGB(221,245,255) }
ENDIF
RETURN (aCol)
no
Thank you.
I don't use TCBROWSE.
But the code I posted works for me.
Regards
Otto
You can use this line with TXBrowse and it elminates the problem described by NageswaraRao.
oBrw:bClrStd:= {|| if( (cAlias)->(ordkeyno()) % 2 == 0 ,{ CLR_BLACK, COLOR_LIGHT },{ CLR_BLACK, COLOR_DARK }) }
However, I understand that ordkeyno() is very slow with ADS so you probably can't use it with ADS.
James