XBROWSE : SELECT clausule in xbrowse.ch

XBROWSE : SELECT clausule in xbrowse.ch

Postby Demont Brecht » 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
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am

Re: XBROWSE : SELECT clausule in xbrowse.ch

Postby Demont Brecht » Fri Mar 30, 2012 3:13 pm

Comparing with wbrowse.prg with his ch.file , it is clear that method Setfilter is missing (with parameters to pass)

Frank
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am


Return to FiveWin for Harbour/xHarbour

Who is online

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