cristiemontes Level: Trainee
 Registered: 28-01-2009 Posts: 3
|
SMS Error plz help me for my code...
Private Sub SMS_ShortMsgReceived(ByVal SMSMemory As SMS3ASuiteLib.SMS_MEMORY_LOCATION, ByVal index As Integer, ByVal pSMS As SMS3ASuiteLib.IShortMessage) Handles SMS.ShortMsgReceived
If SMSMemory = SMS3ASuiteLib.SMS_MEMORY_LOCATION.PHONE_MEMORY Then
MsgBox("A short message received and stored in phone memory location " & index)
ElseIf SMSMemory = SMS3ASuiteLib.SMS_MEMORY_LOCATION.SIM_MEMORY Then
MsgBox("A short message received and stored in SIM memory location " & index)
End If
End Sub
the highlighted one is the error..
the error their is: Error 1 Method 'Private Sub SMS_ShortMsgReceived(SMSMemory As SMS3ASuiteLib.SMS_MEMORY_LOCATION, index As Integer, pSMS As SMS3ASuiteLib.IShortMessage)' cannot handle Event 'Public Event ShortMsgReceived(SMSMemory As SMS3ASuiteLib.SMS_MEMORY_LOCATION, index As Integer, pSMS As SMS3ASuiteLib.ShortMessage)' because they do not have the same signature. C:\Documents and Settings\KHITY\Desktop\SMS Settings\Project1.NET\MainForm.vb 155 171 Project1
[Edited by cristiemontes on 08-02-2009 at 12:08 PM GMT]
____________________________
an IT student here in the philipines..
|