XBROWSE : SELECT clausule in xbrowse.ch
Posted: Fri Mar 30, 2012 7:27 am
Hello,
I tryed to understand and to use the select clausule in xbrowse.ch
#xcommand @ <nRow>, <nCol> [ COLUMN ] XBROWSE <oBrw> .... ;
[ SELECT <cField> FOR <uValue1> [ TO <uValue2> ] ] ;
Taking Testxbr3.prg as sample , i changed in RddBrwAllColsWin :
@ 0,0 XBROWSE oBrw OF ownd ALIAS cAlias ;
AUTOSORT AUTOCOLS FOOTERS FASTEDIT LINES CELL SELECT First FROM "Achim" TO "Al";
BACKGROUND 'PAPER'
It gives a error. Looking in the ppo file i got :
oBrw := XbrowseNew( ownd, 0, 0,,, { {|| SELECT} } { {|| FIRST} } { {|| FROM} } { {|| "Achim"} } { {|| TO} } { {|| "Al"} },....
the 6-th parameter is afield , the preprocessor translate SELECT .... in field's.
The translation from the ch-file ( <oBrw> := XbrowseNew( <oWnd>, <nRow>, <nCol>, <nWidth>, <nHeigth>,...)
Has no refererences to cField , uValue1 or uValue2. Xbrowsenew has no parameters for this purpose.
When and how is this clausule used ? Is it implimented ?
Frank
I tryed to understand and to use the select clausule in xbrowse.ch
#xcommand @ <nRow>, <nCol> [ COLUMN ] XBROWSE <oBrw> .... ;
[ SELECT <cField> FOR <uValue1> [ TO <uValue2> ] ] ;
Taking Testxbr3.prg as sample , i changed in RddBrwAllColsWin :
@ 0,0 XBROWSE oBrw OF ownd ALIAS cAlias ;
AUTOSORT AUTOCOLS FOOTERS FASTEDIT LINES CELL SELECT First FROM "Achim" TO "Al";
BACKGROUND 'PAPER'
It gives a error. Looking in the ppo file i got :
oBrw := XbrowseNew( ownd, 0, 0,,, { {|| SELECT} } { {|| FIRST} } { {|| FROM} } { {|| "Achim"} } { {|| TO} } { {|| "Al"} },....
the 6-th parameter is afield , the preprocessor translate SELECT .... in field's.
The translation from the ch-file ( <oBrw> := XbrowseNew( <oWnd>, <nRow>, <nCol>, <nWidth>, <nHeigth>,...)
Has no refererences to cField , uValue1 or uValue2. Xbrowsenew has no parameters for this purpose.
When and how is this clausule used ? Is it implimented ?
Frank