Antonio,
No, I am using AADD( aBookMarks, oRecordSet:BookMark )
I think your approach is the same as SQLRDD.
And also, we have Scopes, faster that Filters.
/*
fix to add HBRECNO if it´s not present // Lucas De Beltran 23.05.2015
cannot be first otherwise copy to changes all fields order and values ahf 23.5.2015
Transposes the array to have only first row // Lucas de Beltran 24.05.2015
*/
IF ASCAN( ArrTranspose( aWAData[ WA_SQLSTRUCT ] )[1], ADO_GET_FIELD_RECNO( aWAData[ WA_TABLENAME ] ) ) == 0
AADD( aWAData[ WA_SQLSTRUCT ], { ADO_GET_FIELD_RECNO( aWAData[ WA_TABLENAME ] ), '+', 10, 0 } )
ENDIF
DbFilter() does not return the filter expresión.
Also, OrdSetFocus() when there is an active filter fails.
lucasdebeltran wrote:Antonio,
As you change position to HBRECNO at ADO_CREATE(), this fix is required to handle the array:
- Code: Select all Expand view
/*
fix to add HBRECNO if it´s not present // Lucas De Beltran 23.05.2015
cannot be first otherwise copy to changes all fields order and values ahf 23.5.2015
Transposes the array to have only first row // Lucas de Beltran 24.05.2015
*/
IF ASCAN( ArrTranspose( aWAData[ WA_SQLSTRUCT ] )[1], ADO_GET_FIELD_RECNO( aWAData[ WA_TABLENAME ] ) ) == 0
AADD( aWAData[ WA_SQLSTRUCT ], { ADO_GET_FIELD_RECNO( aWAData[ WA_TABLENAME ] ), '+', 10, 0 } )
ENDIF
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 77 guests