I hate help files. Hope this covers things
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
Sip=False
sms.New1
Msgbox(sms.About,"MsgLib")
For a = 0 To sms.NumOfStores-1 'For each number of device message stores 0-?
sms.SetStoreNum=a 'Set the store number 0-?
combobox1.Add(sms.GetStoresName) 'Get the store name and populate combobox1
Next
combobox1.SelectedIndex=0 'Reset combobox1 index
End Sub
Sub ComboBox1_SelectionChanged(Index, Value) 'Set's desired store number. eg 2=SMS on my device
sms.SetStoreNum=index
store=value 'Save store name for further use
End Sub
Sub Button1_Click
a=sms.GetNumInboxItems 'Returns the number of Inbox messages
If a = 0 Then Return 'If empty, return
combobox2.Clear 'Reset combobox2
label2.Text="Reading ."
For b = 0 To a -1
combobox2.Add(b) 'Add number values for each message to combobox2
Next
combobox2.SelectedIndex=0 'Start at '0'
sms.LoadInboxMsg 'Load all Inbox messages to memory
label2.Text=a & " Read."
Msgbox("Read",store) 'Done
End Sub
Sub Button3_Click 'As sub above but reads Sent Items
a=sms.GetNumSentItems
If a = 0 Then Return
combobox2.Clear
label2.Text="Reading ."
For b = 0 To a -1
combobox2.Add(b)
Next
combobox2.SelectedIndex=0
sms.LoadSentMsg
label2.Text=a & " Read."
Msgbox("Read",store)
End Sub
Sub Button4_Click 'As sub above but reads Outbox Items
a=sms.GetNumOutboxItems
If a = 0 Then Return
combobox2.Clear
label2.Text="Reading ."
For b = 0 To a -1
combobox2.Add(b)
Next
combobox2.SelectedIndex=0
sms.LoadOutboxMsg
label2.Text=a & " Read."
Msgbox("Read",store)
'msgbox()
End Sub
Sub Button5_Click 'As sub above but reads Deleted Items
a=sms.GetNumDeletedItems
If a = 0 Then Return
combobox2.Clear
label2.Text="Reading ."
For b = 0 To a -1
combobox2.Add(b)
Next
combobox2.SelectedIndex=0
sms.LoadDeletedMsg
label2.Text=a & " Read."
Msgbox("Read",store)
'msgbox()
End Sub
Sub Button2_Click
sms.SetMsgNum=combobox2.SelectedIndex 'Select the message number
textbox1.Text=sms.GetMsgSubject 'Gets the message subject, for email. Or SMS Body
label3.Text=sms.GetMsgSenderName '
label4.Text=sms.GetMsgSenderAddress '
label5.Text=Time(sms.GetMsgDate) 'In Ticks
label6.Text=Date(sms.GetMsgDate) 'In Ticks
label7.Text=sms.GetMsgBody 'Same as GetMsgSubject for SMS. Or Body for email
End Sub