Problemas com índices secundários

Delphi

01/02/2008

Olá!

Preciso ordenar os registros de uma tabela por data e hora, e coloquei estes dois campos como índices secundários. Não estou conseguindo porque ora dá a mensagem Index is read only, ora Index is out of date.
Coloquei no evento OnShow do form o código: Table1.IndexFieldNames:=´Data, Hora´;
O que tem de errado?


Bielisilva

Bielisilva

Curtidas 0

Respostas

Aroldo Zanela

Aroldo Zanela

01/02/2008

Colega,

Qual é o banco de dados?


GOSTEI 0
Bielisilva

Bielisilva

01/02/2008

Uso o Paradox 7


GOSTEI 0
Aroldo Zanela

Aroldo Zanela

01/02/2008

Colega.

Creio que basta utilizar ponto-e-vírgula no lugar da vírgula.

Use IndexFieldNames as an alternative method of specifying the index to use for a table. In IndexFieldNames, specify the name of each column to use as an index for a table. Ordering of column names is significant. [b:753d852174]Separate names with semicolon.[/b:753d852174] For Paradox and dBASE any column names specified in IndexFieldNames must already be indexed. This must be a single index using the same fields in the same order as specified in IndexFieldNames.



GOSTEI 0
POSTAR