Hi guys,
when I try to use the parambyname('fieldname').AsMemo,but I'm getting an access violation error. I'm setting the field with a TSringList type variable, and I tried to use the assign method and the same trouble happens.
Here's the code:
with spInsDoc do
begin
ParamByName('@cliente').AsString := info_doc.Cliente;
ParamByName('@usuario').AsString := info_doc.Usuario;
ParamByName('@senha').AsString := info_doc.Senha;
ParamByName('@Documento').AsString := info_doc.Documento;
ParamByName('@servico').AsString := info_doc.servico;
ParamByName('@titulo').AsString := info_doc.Titulo;
ParamByName('@formatacao').AsString := info_doc.formatacao;
ParamByName('@texto').AsMemo := tslDocumento.GetText; //here is where the error occurs
ExecProc;
Could anyone help me?
when I try to use the parambyname('fieldname').AsMemo,but I'm getting an access violation error. I'm setting the field with a TSringList type variable, and I tried to use the assign method and the same trouble happens.
Here's the code:
with spInsDoc do
begin
ParamByName('@cliente').AsString := info_doc.Cliente;
ParamByName('@usuario').AsString := info_doc.Usuario;
ParamByName('@senha').AsString := info_doc.Senha;
ParamByName('@Documento').AsString := info_doc.Documento;
ParamByName('@servico').AsString := info_doc.servico;
ParamByName('@titulo').AsString := info_doc.Titulo;
ParamByName('@formatacao').AsString := info_doc.formatacao;
ParamByName('@texto').AsMemo := tslDocumento.GetText; //here is where the error occurs
ExecProc;
Could anyone help me?