FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How can I show the line number in TWbrowse
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
How can I show the line number in TWbrowse
Posted: Sat May 25, 2013 03:11 AM

Dear All,

I would like to show line number in TWbrowse as Eval( oBrw:bKeyNo ) in XBROWSE.

How can I do it?

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How can I show the line number in TWbrowse
Posted: Sat May 25, 2013 06:19 AM

Do you mean that you are using a TWBrowse and want to have a column where Eval( oBrw:bKeyNo ) is shown ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How can I show the line number in TWbrowse
Posted: Sat May 25, 2013 06:28 AM
This is an example:

Code (fw): Select all Collapse
#include "FiveWin.ch"

//----------------------------------------------------------------//

function Main()

   local oDlg, oLbx

   USE Customer

   DEFINE DIALOG oDlg FROM 5,10 TO 24, 70

   @  0, 0 LISTBOX oLbx ;
      FIELDS AllTrim( Str( RecNo() ) ), First, Last ;
      TITLE "RecNo", "First", "Last" ;
      SIZE 100, 100 OF oDlg

   oDlg:oClient = oLbx

   ACTIVATE DIALOG oDlg CENTERED ;
      ON INIT oDlg:Resize()

return nil

//----------------------------------------------------------------//


regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: How can I show the line number in TWbrowse
Posted: Sat May 25, 2013 07:32 AM

Dear Antonio,

I need ti show the row number, not record number.
Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How can I show the line number in TWbrowse
Posted: Sat May 25, 2013 08:20 AM

Dutch,

There are no rows as they are virtual, unless you browse an array

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How can I show the line number in TWbrowse
Posted: Sat May 25, 2013 12:10 PM
dutch wrote:Dear Antonio,

I need ti show the row number, not record number.
Regards,
Dutch


Try to use OrdKeyNo().

EMG
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: How can I show the line number in TWbrowse
Posted: Sat May 25, 2013 02:29 PM
Hi EMG,

It works as expectation.
Enrico Maria Giordano wrote:
dutch wrote:Dear Antonio,

I need ti show the row number, not record number.
Regards,
Dutch


Try to use OrdKeyNo().

EMG


Regards,
Dutch
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)

Continue the discussion