What is the item number in the Twbrowse()?

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

What is the item number in the Twbrowse()?

Post by dutch »

Dear All,

How can I get item number in the Twbrowse as :nLogicPos() of TSbrowse().

Best regards,
Dutch
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

oBrw:nRowPos doesn't work.

Post by dutch »

Dear Enrico,

I try the following but it shows error because while define oBrw is not exist (I think).

@ 0, 0 LISTBOX oBrw FIELDS str( oBrw:nRowPos ,3), ; TRN->TRN_OUTLET, TRN->TRN_TBL, TRN->TRN_ORDER, TRN->TRN_DESC, TRN->TRN_TIME, Str(TRN->TRN_QTTY,3) ;
HEADERS 'Item', 'Outlet', 'Table No.','Order No.', 'Description', 'Time', 'Qty.' ;
FIELDSIZES 20, 70, 60, 100, 350, 100, 60 ;
SIZE 895, 675 ;
PIXEL ;
OF oWnd
Best regards,
Dutch
kok joek hoa
Posts: 117
Joined: Tue Jan 03, 2006 6:18 pm

oBrw:nRowPos doesn't work

Post by kok joek hoa »

Dear Dutch

try this TRANSFORM(obrw:nat,'999')

regards,

Kok
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Duth,

Try this:

Code: Select all

@ 0, 0 LISTBOX oBrw FIELDS "" ; 
HEADERS 'Item', 'Outlet', 'Table No.','Order No.', 'Description', 'Time', 'Qty.' ; 
FIELDSIZES 20, 70, 60, 100, 350, 100, 60 ; 
SIZE 895, 675 ; 
PIXEL ; 
OF oWnd

oBrw:bLine = { || { str( oBrw:nRowPos ,3), ; TRN->TRN_OUTLET, TRN->TRN_TBL, TRN->TRN_ORDER, TRN->TRN_DESC, TRN->TRN_TIME, Str(TRN->TRN_QTTY,3) } }
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Thans, it works now.

Post by dutch »

Dear All,

I've changed to use TSbrowse instead of TWbrowse and Comix&ClipMore. The result is

::nRowPos -> All items alway show '1' after refresh.
::nLogicPos -> It shows the item number belonging to Comix but do not support ClipMore. Because I used both
::nAt -> It works fine.

Best regards,
Dutch
Post Reply