|
-
May 27th, 2012, 11:09 AM
#1
Hyperactive Member
Re: sending sms with listview and checkbox in listview
[QUOTE=salsa31;4177355]let me show you part of the sending code
l LsVw.SelectedItem it will work?
you will have to change this code to list then it will snd
but u will have to bring whole data of database to text data base
-
May 27th, 2012, 11:11 AM
#2
Thread Starter
Enjoy the moment
Re: sending sms with listview and checkbox in listview
[QUOTE=useruseronline;4177363]
 Originally Posted by salsa31
let me show you part of the sending code
l LsVw.SelectedItem it will work?
you will have to change this code to list then it will snd
but u will have to bring whole data of database to text data base
didntwork
-
May 27th, 2012, 11:13 AM
#3
Hyperactive Member
Re: sending sms with listview and checkbox in listview
[QUOTE=salsa31;4177366]
 Originally Posted by useruseronline
didntwork
u r doing it wrong because ur data is mdb format bring it in to two files as i did
the draw the list and code accordingly
-
May 27th, 2012, 11:18 AM
#4
Re: sending sms with listview and checkbox in listview
Assuming, your API provider allows multiple TO elements.
vb Code:
Private Function getSelectedNums() As String
Dim temp As String
temp = ""
Dim i As Long
For i = 1 To ListView1.ListItems.Count '~~~ Loop through the listview
If ListView1.ListItems(i).Checked = True Then '~~~ if an item is checked
temp = temp & "<TO>" & ListView1.ListItems(i).SubItems(1) & "</TO>" & vbCrLf '~~~ enclose the number in "<TO>" tags
End If
Next
getSelectedNums = temp '~~~ return it
End Function
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
May 27th, 2012, 11:25 AM
#5
Thread Starter
Enjoy the moment
Re: sending sms with listview and checkbox in listview
 Originally Posted by akhileshbc
Assuming, your API provider allows multiple TO elements.
vb Code:
Private Function getSelectedNums() As String Dim temp As String temp = "" Dim i As Long For i = 1 To ListView1.ListItems.Count '~~~ Loop through the listview If ListView1.ListItems(i).Checked = True Then '~~~ if an item is checked temp = temp & "<TO>" & ListView1.ListItems(i).SubItems(1) & "</TO>" & vbCrLf '~~~ enclose the number in "<TO>" tags End If Next getSelectedNums = temp '~~~ return it End Function

where do i put this code?
i just want to be able to choose a contact form the listview and send him a sms
Last edited by salsa31; May 27th, 2012 at 11:30 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|