FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE RecordSelector & Record Number
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM

XBROWSE RecordSelector & Record Number

Posted: Mon Oct 27, 2014 07:13 PM

Hi,

Can it be record number showed in recordselector like in Excel ?

Best regards,

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM

Re: XBROWSE RecordSelector & Record Number

Posted: Mon Oct 27, 2014 10:11 PM
Avista

Try it like this .. oCOl has to be defined in your variable list.

Rick Lipkin

Code (fw): Select all Collapse
// row numbers
ADD oCol to oLbxB AT 1 DATA oLbxB:KeyNo() HEADER 'Ln' size 23 //PICTURE '9999'
oLbxB:aCols[1]:nDataStrAlign := AL_LEFT
oLbxB:aCols[1]:nHeadStrAlign := AL_LEFT
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: XBROWSE RecordSelector & Record Number

Posted: Tue Oct 28, 2014 03:19 PM
avista wrote:Hi,

Can it be record number showed in recordselector like in Excel ?

Best regards,

Right now it is not possible, but we do have plans to provide painting of user specified information on the RecordSelector.

Still we can show the same effect this way.

Insert column 1 to show oBrw:KeyNo or ( cAlias )->( recno() ) or whatever you choose.

ADD TO oBrw AT 1 DATA oBrw:KeyNo PICTURE "9999" HEADER "SlNo"

Then remove recordselector and paint the first column with record selector color.

oBrw:lRecordSelector := .f.
oBrw:oCol( "SlNo" ):bClrStd := { || CLR_BLACK, oBrw:nRecSelColor }

This gives a similar look and feel but still not as good as directl painting the number on the recordselector itself.
Regards



G. N. Rao.

Hyderabad, India
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM

Re: XBROWSE RecordSelector & Record Number

Posted: Wed Oct 29, 2014 12:51 AM
Rick, Rao,
Thanks for reply,

Still we can show the same effect this way.

Same efect ? Yes !

But i must change the source code where i control column values becouse column number is changed
(I have one column more)

( cAlias )->( recno() )

Is it good solution ? What if .dbf file is indexed ?

Regards,
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: XBROWSE RecordSelector & Record Number

Posted: Wed Oct 29, 2014 08:48 PM

The database could also be indexed and filtered.

I tried to come with some ideas but multi-user systems would be a problem. Ideally, you would need to read a location from the index itself but I don't know if this is possible. And if you added a filter that was not part of the index itself, then the location wouldn't be accurate.

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion