FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE : SELECT clausule in xbrowse.ch
Posts: 55
Joined: Fri Jul 08, 2011 06:43 AM
XBROWSE : SELECT clausule in xbrowse.ch
Posted: Fri Mar 30, 2012 07: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

Posts: 55
Joined: Fri Jul 08, 2011 06:43 AM
Re: XBROWSE : SELECT clausule in xbrowse.ch
Posted: Fri Mar 30, 2012 03:13 PM

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

Frank

Continue the discussion