Results 1 to 40 of 146

Thread: [RESOLVED] sending sms with listview and checkbox in listview

Hybrid View

  1. #1
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    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

  2. #2

    Thread Starter
    Enjoy the moment
    Join Date
    Feb 2011
    Location
    Barrio Del pilar madrid spain
    Posts
    5,204

    Re: sending sms with listview and checkbox in listview

    [QUOTE=useruseronline;4177363]
    Quote Originally Posted by salsa31 View Post
    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

  3. #3
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    [QUOTE=salsa31;4177366]
    Quote Originally Posted by useruseronline View Post

    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

  4. #4
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: sending sms with listview and checkbox in listview

    Assuming, your API provider allows multiple TO elements.
    vb Code:
    1. Private Function getSelectedNums() As String
    2.     Dim temp As String
    3.     temp = ""
    4.    
    5.     Dim i As Long
    6.     For i = 1 To ListView1.ListItems.Count  '~~~ Loop through the listview
    7.         If ListView1.ListItems(i).Checked = True Then   '~~~ if an item is checked
    8.             temp = temp & "<TO>" & ListView1.ListItems(i).SubItems(1) & "</TO>" & vbCrLf    '~~~ enclose the number in "<TO>" tags
    9.         End If
    10.     Next
    11.    
    12.     getSelectedNums = temp  '~~~ return it
    13. 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,...

  5. #5

    Thread Starter
    Enjoy the moment
    Join Date
    Feb 2011
    Location
    Barrio Del pilar madrid spain
    Posts
    5,204

    Re: sending sms with listview and checkbox in listview

    Quote Originally Posted by akhileshbc View Post
    Assuming, your API provider allows multiple TO elements.
    vb Code:
    1. Private Function getSelectedNums() As String
    2.     Dim temp As String
    3.     temp = ""
    4.    
    5.     Dim i As Long
    6.     For i = 1 To ListView1.ListItems.Count  '~~~ Loop through the listview
    7.         If ListView1.ListItems(i).Checked = True Then   '~~~ if an item is checked
    8.             temp = temp & "<TO>" & ListView1.ListItems(i).SubItems(1) & "</TO>" & vbCrLf    '~~~ enclose the number in "<TO>" tags
    9.         End If
    10.     Next
    11.    
    12.     getSelectedNums = temp  '~~~ return it
    13. 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
  •  



Click Here to Expand Forum to Full Width