Hello,
I need some help for the new FILTER-section to complete it.
It belongs to the first 3 positions using <
Setfilter >
1. oCust:SetFilter(" Last
3. oCust:SetFilter( " Hiredate
2. oCust:SetFilter( " Age works
Code: Select all | Expand
IF nAge2 = 0 // only nAge1
oCust:SetFilter( " Age == " + STR(nAge1) ) // from GET - field
ELSE
oCust:SetFilter( " Age >= " + STR(nAge1) + " .and. Age <= " + STR(nAge2) )
ENDIF
The problem seems to be the defined vars of 1 and 3
tests 2, 4 and 5 and 6 are working :
oCust:SetFilter( " Married = .T. " )
oCust:SetFilter( " Married = .F. " )
oCust:ClearFilter() As well all ORDSCOPE-tests are working fine
The test is included in < TDATAB3.prg >
Thw index is defined in < NETWORK.prg >
DOWNLOAD
http://www.pflegeplus.com/DOWNLOADS/Network.zop( rename zop to zip )
1. Select a filter from the radio
2. define filter vars ( filter 1, 2 or 3 ) if needed
3. select button < Ordscope > or < Setfilter >
Test : showing all customers with age 60 using ORDSCOPE
![Image](http://www.pflegeplus.com/IMAGES/Network23.jpg)
regards
Uwe
![Very Happy :D](./images/smilies/icon_biggrin.gif)