I must use oCust:setfilter from a substring
That works perfect

oCust:ORDSCOPE(0, cLast )
oCust:ORDSCOPE(1, cLast )
but I want to show the solution using oCust:SetFilter( ... )

// the index
oCust:CreateIndex( "CUSTOMER", "CUST1", "UPPER(LAST)", .F. )
// the defined get to be filtered ( substring of field oCust:last using < clast > )
@ 55, 700 GET oGet[1] VAR cLast SIZE 100, 22 PICTURE "!!!!!!!!!!" PIXEL UPDATE // 10 chars of field < last > C 20
// the function call
ACTION ( SET_FILTER( "Filter", nOption, ALLTRIM(cLast ), nAge1, nAge2, dDate1, dDate2, lMarried1, lMarried2 )
// field < oCust:last > needed to be filtered
// 'AC' must be replaced with the trimmed -> cLast ( from the get-field )
// 2 must be replaced with LEN( cLast )
// works with fixed values

oCust:SetFilter( " SUBSTR( UPPER( Last ), 1, 2 ) == 'AC' " ) // is OK and is filtering -> Acker
another working filter shows the a range of age
oCust:SetFilter( " Age >= " + STR( nAge1 ) + " .and. Age <= " + STR( nAge2 ) )
I tested different solutions but didn't work
regards
Uwe
