It is already there in many past versions. Nages, I can converte also this block ? oPrenotazioni := TDatabase():Open( nil, oApp():cDbfPath+"RESERVA", "DBFCDX", .t. ) oPrenotazioni:Exec( < || SET FILTER TO AllTrim( F...
When you set filter with oDbf:SetFilter( cFilter, aParams ) The method applier the aParams to cFilter and prepares the filter string to set the filter. You can check the exact filter string with ? oDbf:DBFILTER() and see if this is what you expected.
Nages, I need to make a filter with different fields ie for example: cFilter := "trim(Tipo) == '" + cTipo +; "' .and. alltrim(str(giorni))== '" + alltrim(str(nGiorni)) ...
You can also try oRs:SetFilter( "TIPO = ?", { cTipo } ) If you use this approach, then later you can use refilter. Example: oRs:SetFilter( "state = ?", { "NY" } )// after some workoRs:Refilter( { "WA" ...
... una matriz cuando es evaluado. Uso: oDbf:SetFilter( "UPPER(FIRST) = ? .AND. HIREDATE >= ?", ; { cName, dDate } ) - Nuevo: Método Refilter( aParams ): Restablece el filtro utilizando la expresión de filtro utilizada previamente con los nuevos parámetros. - Mejora: Cuando la relación ...
... returns an array when evaluated. Usage: oDbf:SetFilter( "UPPER(FIRST) = ? .AND. HIREDATE >= ?", ; { cName, dDate } ) - New: Method Refilter( aParams ): Resets the filter using previously used filter experession with the new paramters - Enhancement: When relation is set to another ...