Adam
2003-10-20 22:17:02 UTC
I'm relatively new to Delphi here and could use any help I can get.
I've got a dBase table on which I need to do some complex filtering.
In order to do the filtering I have to create indexes on two fields,
NOT index expressions. I have been trying several ideas and am
running into errors. I have been searching newsgroups and have been
unable to find anything that really explains it in depth and I seem to
be repeatedly bashing my head against a brick wall... From what I've
read it seems that the TTable.AddIndex procedure is the only way to
add an index to an existing dBase table without an error but I keep
getting the error 'Index Name Required.' from the following lines of
code
AddIndex('AUTHIND', 'AUTHOR', []);
AddIndex('DATEIND', 'DATE', [], '');
The table is closed, readonly is false...
I'm using Delphi 5 and an old dBase table, not sure what version.
Thanks in advance for any help
Adam
I've got a dBase table on which I need to do some complex filtering.
In order to do the filtering I have to create indexes on two fields,
NOT index expressions. I have been trying several ideas and am
running into errors. I have been searching newsgroups and have been
unable to find anything that really explains it in depth and I seem to
be repeatedly bashing my head against a brick wall... From what I've
read it seems that the TTable.AddIndex procedure is the only way to
add an index to an existing dBase table without an error but I keep
getting the error 'Index Name Required.' from the following lines of
code
AddIndex('AUTHIND', 'AUTHOR', []);
AddIndex('DATEIND', 'DATE', [], '');
The table is closed, readonly is false...
I'm using Delphi 5 and an old dBase table, not sure what version.
Thanks in advance for any help
Adam