Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi guys how am i going to make my sms application with the status of message sending Failed or message Sent successfully? like the messaging on our phone. i'm using AT Commands and GSM modem
here is my sending code:
MSComm1.Output = "AT" & vbCrLf
List1.AddItem MSComm1.Input
Sleep 500
MSComm1.Output = "AT+CMGF=1" & vbCrLf
List1.AddItem MSComm1.Input
Sleep 1000
MSComm1.Output = "AT+CMGS=" & Chr(34) & tmpF_MobileNum & Chr(34) & vbCrLf
MSComm1.Output = TMPMESEJ & Chr(26)
List1.AddItem MSComm1.Input
Sleep 1500
MSComm1.Output = "AT+CMGS=" & Chr(34) & tmpM_MobileNum & Chr(34) & vbCrLf
MSComm1.Output = TMPMESEJ & Chr(26)
List1.AddItem MSComm1.Input
Sleep 2000

Q1: How am i going to do that my program tell me or show me that the message is failed or sent?
Thanks in Advance.
Posted
Updated 5-Dec-14 3:34am
v3
Comments
ZurdoDev 3-Dec-14 10:34am    
Do you have a question?
hilver 5-Dec-14 9:30am    
how am i going to show that the message is send or failed something like message box.
sorry for my late reply im try to make my program right but still it's the same.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900