Page 1 of 1
What is the item number in the Twbrowse()?
Posted: Wed Aug 02, 2006 7:07 pm
by dutch
Dear All,
How can I get item number in the Twbrowse as :nLogicPos() of TSbrowse().
Best regards,
Dutch
Re: What is the item number in the Twbrowse()?
Posted: Wed Aug 02, 2006 8:06 pm
by Enrico Maria Giordano
Try oBrw:nRowPos.
EMG
oBrw:nRowPos doesn't work.
Posted: Thu Aug 03, 2006 2:45 am
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
oBrw:nRowPos doesn't work
Posted: Thu Aug 03, 2006 7:20 am
by kok joek hoa
Dear Dutch
try this TRANSFORM(obrw:nat,'999')
regards,
Kok
Posted: Thu Aug 03, 2006 7:21 am
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) } }
Thans, it works now.
Posted: Mon Aug 07, 2006 4:58 am
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