PROBLEMA COM O ESTADO DA TABELA

Delphi

04/07/2003

ESTOU USANDO O EXEMPLO ABAIXO:

if Tabela.State in [dsInsert, dsEdit] then
Tabela.Post;

ACONTECE QUE NA HORA DA COMPILAÇÃO, O DELPHI 5 ESTÁ GERANDO O SEGUINTE ERRO:

[Error] Periodo.pas(63): Incompatible types: ´TDataSetState´ and ´Integer´

O QUE PODERIA ESTAR ACONTECENDO ?
JÁ VI VÁRIOS DICAS NO FORUM UTILIZANDO ESTA MESMA FORMA..

GRATO.


Guilherme B

Guilherme B

Curtidas 0

Respostas

Tiagodelatorre

Tiagodelatorre

04/07/2003

Deveria Funcionar, como vc fez mas tentou isso!

if (Tabela.State = dsInsert) or (Tabela.State = dsEdit) then
Tabela.Post;


GOSTEI 0
Fred

Fred

04/07/2003

acrescente na uses a unit ´DB´ pode ser isto! 8)


GOSTEI 0
Guilherme B

Guilherme B

04/07/2003

ESTAVA FALTANDO O DB NA UNIT.

OBRIGADO A TODOS.

SDS


GOSTEI 0
Guilherme B

Guilherme B

04/07/2003

ESTAVA FALTANDO O DB NA UNIT.

OBRIGADO A TODOS.

SDS


GOSTEI 0
POSTAR