Page 1 of 1

XBROWSE : SELECT clausule in xbrowse.ch

Posted: Fri Mar 30, 2012 7:27 am
by Demont Brecht
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

Re: XBROWSE : SELECT clausule in xbrowse.ch

Posted: Fri Mar 30, 2012 3:13 pm
by Demont Brecht
Comparing with wbrowse.prg with his ch.file , it is clear that method Setfilter is missing (with parameters to pass)

Frank