[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 594: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 650: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
Fórum Xmaker • Desabilitar AutoIncremento
Página 1 de 1

Desabilitar AutoIncremento

Enviado: Dezembro 22nd, 2011, 6:54 pm
por xfilpo
Senhores ;

Alguém saberia informar como desabilitar o AutoIncremento de uma Tabela ao se fazer a importação dos dados à partir de um arquivo TXT?


Sds


XFilpo

Re: Desabilitar AutoIncremento

Enviado: Janeiro 10th, 2012, 11:08 am
por Gilberto
Bom Dia, segue sugestão.


while not eof(ArqTexto) do
begin
Readln(ArqTexto,Registro);
TabGlobal.DLocatarios.Insert;
TabGlobal.DLocatarios.CODINQ.AtribuiValor(strToInt(copy(Registro,04,04)));
TabGlobal.DLocatarios.NOME.Conteudo :=UpperCase(JOemToAnsiStr(trim(Copy(Registro,09,35))));
If Trim(copy(Registro,222,01)) <> '' then
TabGlobal.DLocatarios.Pessoa.Conteudo := 'J'
else
TabGlobal.DLocatarios.Pessoa.Conteudo := 'F';
TabGlobal.DLocatarios.Salva;
End; // Fim While leitura do TXT
CloseFile(ArqTexto);
End;
ShowMessage('Final do Processamento');


Att
Gilberto

Re: Desabilitar AutoIncremento

Enviado: Janeiro 10th, 2012, 12:31 pm
por xfilpo
Olá Gilberto ;

Agradecido pela sugestão, mas este tipo de rotina eu já tenho funcionando, a questão que eu coloquei, na verdade seria como desabilitar campos autoincremento em tempo de execução, quando estivesse importando dados de um txt p/uma tabela Firebird.

Sds

XFilpo