How can I show the line number in TWbrowse

How can I show the line number in TWbrowse

Postby dutch » Sat May 25, 2013 3: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 19.01 / 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)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How can I show the line number in TWbrowse

Postby Antonio Linares » Sat May 25, 2013 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42092
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How can I show the line number in TWbrowse

Postby Antonio Linares » Sat May 25, 2013 6:28 am

This is an example:

Code: Select all  Expand view
#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

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


Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42092
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How can I show the line number in TWbrowse

Postby dutch » Sat May 25, 2013 7:32 am

Dear Antonio,

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

FWH 19.01 / 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)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How can I show the line number in TWbrowse

Postby Antonio Linares » Sat May 25, 2013 8:20 am

Dutch,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42092
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How can I show the line number in TWbrowse

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How can I show the line number in TWbrowse

Postby dutch » Sat May 25, 2013 2: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 19.01 / 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)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 101 guests