People, I've passed a wrong information. the problem occurs when I call the ExecProc method and there's no error if I put ParamByName('@texto').AsString := tslDocumento.GetText. But, sure, the data isn't registered in the right way.
The error message is:
Access violation at address 4D42A183 in module
'SQLMSS32.DLL'. Read of address 00C5C000.
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;
ExecProc; //here is where the error occurs
Could anyone help me?
The error message is:
Access violation at address 4D42A183 in module
'SQLMSS32.DLL'. Read of address 00C5C000.
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;
ExecProc; //here is where the error occurs
Could anyone help me?