[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 • Dificuldade com o Ptabela ?
Página 1 de 1

Dificuldade com o Ptabela ?

Enviado: Agosto 28th, 2012, 2:50 am
por wlqmineiro
Estou executando uma consulta em uma tabela para obter um determinando conteúdo que é um horario.
O interessante é que quando entro na inclusao ou alteracao pela primeira vez, o retorno do Ptabela é correto.
Agora se tento incluir ou alterar apos ter executado uma vez, ele retorna tudo errado.

Veja trecho do código:
if Ptabela(TabGlobal.Dassunto, ['ass_codigo'], [TabGlobal.Datendimento.ass_codigo.Conteudo], ['coalesce(ass_protocolo,"")','ass_previsao'], CamposResultado) then
begin
Memo1.text := CamposResultado[0];
MaskEdit3.Text := CamposResultado[1];
MaskEdit3.EditMask := '99:99:99';
MaskEdit2.Text := MaskEdit3.Text;
end;

Alguem tem uma ideia do que pode acontecer?
O erro de nao retornar o conteudo do campo ass_previsao, somente acontece na segunda vez.

Grato

Wagner Quirino

Re: Dificuldade com o Ptabela ?

Enviado: Agosto 28th, 2012, 10:00 am
por Leão
Cara, dar uma olha na forma de gerar a consulta, parece que tem parametro a mais...


Obrigado,
Leão

Re: Dificuldade com o Ptabela ?

Enviado: Agosto 28th, 2012, 10:02 am
por Leão
Cara, dar uma olha na forma de gerar a pesquisa, parece que tem parametro a mais...


Obrigado,
Leão