• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
April 25, 2024, 03:55:51 pm

News:

SMF - Just Installed!


Get data of sending result ?

Started by TekNick, December 28, 2012, 08:08:25 pm

Previous topic - Next topic

TekNick

Hi,

I am sending a message like this code:

..
begin
  Table.First;
  ..
  FmyId := Table_Idtable.asInteger;
  nrGSm1.SmsSend( Table_PhoneNumber.Text, 'message', bconfirm_false );
  UpdateSend( Table_Idtable.asInteger ); // procedure to update record

  Table_PhoneNumber.Next; // next record


I want to get data of sending result, using GsmError or SmsSent events:

procedure TForm1.nrGsm1SmsSent()
begin
  setConfirmUpdate( FmyId );
end;


There is a safer way of obtaining accurate record which was sent?

I was using the parameter value aSms of SmsSent event, but this parameter does not have in the event GsmError ..

Thank you!!

Roman Novgorodov

Hello

SmsSend event provides parameters (Sender: TObject; aMem: String;  idSms: Integer; aSms: TnrPduSms)
You can use them for getting details about result of operation.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.