Hi All,
This time my cursor issue is of the data table type.
I am using a grid to control "filtering" and navigation of records, common enough I think for us here.
But I wanted to create some different ordered views on the cursor, by issuing a series of "INDEX ON" commands after the table is created.
Then I have a drop-down box that I wanted to populate with the index tags, so you can just select a different order based on what tags are available for that cursor.
BUT, I'm finding that ATAGINFO() isn't working against the cursor, only a table.
For instance:
SELECT * FROM CUSTOMERTABLE INTO CURSOR CUSTOMERGRID READWRITE
SELECT CUSTOMERGRID
INDEX ON CUSTOMERNAME TAG NAME
INDEX ON COMPANYNAME TAG COMPANY
INDEX ON CUSTOMERSINCE TAG MEMBERSINCE
Then in the Requery of the dropdown, I have:
=ATAGINGO(aIndexTags,"CUSTOMERGRID")
naSize = ALEN(aIndexTags)/6
(The intention there is to just get the number of rows in the index, since ATAGINFO creates 6 "columns" for each tag).
But when it hits this line I get the error that:
Variable 'AINDEXTAGS" is not found.
But from the command window, if I issue this same call directly to the table (CUSTOMERTABLE) it works fine.
So is there some limitation of this with a CURSOR? And if there is, is there some other way I can dynamically get the indexes created for the cursor?
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."
This time my cursor issue is of the data table type.
I am using a grid to control "filtering" and navigation of records, common enough I think for us here.
But I wanted to create some different ordered views on the cursor, by issuing a series of "INDEX ON" commands after the table is created.
Then I have a drop-down box that I wanted to populate with the index tags, so you can just select a different order based on what tags are available for that cursor.
BUT, I'm finding that ATAGINFO() isn't working against the cursor, only a table.
For instance:
SELECT * FROM CUSTOMERTABLE INTO CURSOR CUSTOMERGRID READWRITE
SELECT CUSTOMERGRID
INDEX ON CUSTOMERNAME TAG NAME
INDEX ON COMPANYNAME TAG COMPANY
INDEX ON CUSTOMERSINCE TAG MEMBERSINCE
Then in the Requery of the dropdown, I have:
=ATAGINGO(aIndexTags,"CUSTOMERGRID")
naSize = ALEN(aIndexTags)/6
(The intention there is to just get the number of rows in the index, since ATAGINFO creates 6 "columns" for each tag).
But when it hits this line I get the error that:
Variable 'AINDEXTAGS" is not found.
But from the command window, if I issue this same call directly to the table (CUSTOMERTABLE) it works fine.
So is there some limitation of this with a CURSOR? And if there is, is there some other way I can dynamically get the indexes created for the cursor?
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."