AHF wrote:Can it work like this?
index on &( MyFunc( myparams ) ) TO TEMP1 FOR &( MyFunc2( myparams ) )
No, as "myparams" can be a field name. It has to be completely dynamic.
EMG
AHF wrote:Can it work like this?
index on &( MyFunc( myparams ) ) TO TEMP1 FOR &( MyFunc2( myparams ) )
Enrico Maria Giordano wrote:Antonio,AHF wrote:Can it work like this?
index on &( MyFunc( myparams ) ) TO TEMP1 FOR &( MyFunc2( myparams ) )
No, as "myparams" can be a field name. It has to be completely dynamic.
EMG
AHF wrote:But what do these functions return? The first Field expression and 2nd cfor expression or the eval result ?
INDEX ON UPPER( FIELD -> name ) TO MYINDEX FOR UPPER( FIELD -> name ) = "A"
INDEX ON GETTOTALINCOME( FIELD -> id ) TO MYINDEX FOR GETTOTALINCOME( FIELD -> id ) >= 1000
INDEX ON UPPER( FIELD -> name ) TO MYINDEX FOR UPPER( FIELD -> name ) = "A"
INDEX ON UPPER( FIELD -> name ) TO MYINDEX FOR "UCASE("+ FIELD -> name +")" = "A"
INDEX ON &(GETTOTALINCOME( FIELD -> id )) TO MYINDEX FOR &(GETTOTALINCOME( FIELD -> id ))+ ">= 1000"
lucasdebeltran wrote:Antonio,
And how we define such indexes on the commands fro ADORDD.
Thanks.
IF RDDNAME() = "ADORDD"
INDEX ON ...
ELSE
INDEX ON as it is
ENDIF
lucasdebeltran wrote:Antonio,
No, sorry, I ment about SET ADO TABLES INDEX LIST TO <array> and SET ADODBF TABLES INDEX LIST TO commands for such indexes.
Thank you.
Have you checked out arrayrdd source code?.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 41 guests