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 ) >= 1000INDEX 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"Antonio,
And how we define such indexes on the commands fro ADORDD.
Thanks.
Antonio,
this would mean to review all my code and I can't afford it.
EMG
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
ENDIFAntonio,
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.
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.
Antonio,
Im having a problem with APPEND FROM and COPY TO due to the fact that the scope info array never delivers cForExp and cWhileExp only the code blocks!
This disable us to construct the INSERT INTO with WHERE clause.
Is there any way to get these as literal expressions?
Antonio,
I mean, for Enrico麓s indexes if you could clarify what SET ADO TABLES INDEX LIST TO ... and SET ADODBF TABLES INDEX LIST TO ... should be.
Their usage is not clear neither in source code nor readme.txt.
Thank you.
Lucas,
SET ADO TABLES INDEX LIST TO = indexes without of any clipper like expression only to be used by SQL
SET ADODBF TABLES INDEX LIST TO = indexes with the clipper like expressions needed by the app for its evaluations.
When we use &(indexkey(0)) we cant evaluate a index expression in ADO TABLES "name+dDate+nValue" we will get an error but we can issues a sql select like that.
Thus we need the ADODBF expression "name+DTOS(dDate)+STR(nValue) to do it.
The ADO indexes are for queries the ADODBF are for the normal clipper expressions to allow its evaluation.
Concerning the kind of Enrico indexes since the params are dynamic I assume that they are dynamically created each time they are needed so they dont need to be present in these arrays.
Im finishing APPEND FROM and COPY TO guessing and testing params because the doc its none.
I hope to have it ready tomorrow and Ill post a new version with all NORMAL rdd routines working.
Antonio,
Thank you.
Have you checked out arrayrdd source code?.
Have you checked out arrayrdd source code?.
Completed version adordd at https://github.com/AHFERREIRA/adordd.git