Page 3 of 4 FirstFirst 1234 LastLast
Results 81 to 120 of 146

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

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

    Re: sending sms with listview and checkbox in listview

    see my file its working correctly

  2. #82

    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 useruseronline View Post
    see my file its working correctly
    your file is working but it dosnt pull the db customers

    i need a listview

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

    Re: sending sms with listview and checkbox in listview

    I was asking for the API manual. Or if you know the website of your service provider, let me know. So that I could check the manual and check whether they allow multiple recipients in a single shot.

    @useruseronline: Avoid posting EXE files. Post source code instead.


    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,...

  4. #84

    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
    I was asking for the API manual. Or if you know the website of your service provider, let me know. So that I could check the manual and check whether they allow multiple recipients in a single shot.

    @useruseronline: Avoid posting EXE files. Post source code instead.

    this?

  5. #85

    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

    this is the text code they send me

  6. #86
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    can u write the customer name and numbers in text file and attach

  7. #87

    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 useruseronline View Post
    can u write the customer name and numbers in text file and attach
    i did it at the begining but this will not help man
    only the listview can save the the day for me.

  8. #88
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    dont use data base to save recordsssss use text file

  9. #89

    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 useruseronline View Post
    dont use data base to save recordsssss use text file
    i cant change the programm that i worked for a year bro.

    the whole project relies on the DB
    i have like 20 forms using this DB

  10. #90

    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

    plz akhileshbc can you help me with the listview?

  11. #91
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    oh ok that a real problem

  12. #92
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    what problem are u facing isnt it sending msg or not putting the phone number in text2 ?

  13. #93

    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

    you see this code?
    lsXml = lsXml & "<TO>" & Text2 & "</TO>"

    the text 2 is where i put the number and sends and its working.

    but if i want to select all the users or 5 persons to send sms?
    thats why i need a listview for that.
    to select multiply numbers or just a couple of them
    you get me my friend?

  14. #94

    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

    i need a listview that i can pick which person to send sms to thats it

  15. #95
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    got u pro .. add code to lsvw click event

    when clicked it should add the text of item selected to listbox
    then from there use my method can u do that ?

  16. #96

    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 useruseronline View Post
    got u pro .. add code to lsvw click event

    when clicked it should add the text of item selected to listbox
    then from there use my method can u do that ?
    no exactly

    lets say i have 10 customers ok?
    in a listview
    now i want to pick 3 customers and send them the sms

    something is missing in the middle of this code so that it will know i choosed 3 customers get me?
    lsXml = lsXml & "<TO>" & LsVw.SelectedItem & "</TO>"

  17. #97
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    no getting u bro ..
    u chose 3 cust ok
    then u click snd buttn but it does not as text2 is empty rit ?

  18. #98

    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 useruseronline View Post
    no getting u bro ..
    u chose 3 cust ok
    then u click snd buttn but it does not as text2 is empty rit ?
    text 2 is only to send to 1 phone number thats it.
    i need the option to send to acouple

  19. #99
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    give me the code to fill the text box with one cust u select

  20. #100

    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

    which code?
    i uploaded here all the codes

  21. #101
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    u send me wrong form there is no list its picture box no rit code .... i could have told u before but ignored it

  22. #102

    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 useruseronline View Post
    u send me wrong form there is no list its picture box no rit code .... i could have told u before but ignored it
    some thing is missing here

    lsXml = lsXml & "<TO>" & LsVw.SelectedItem & "</TO>"

    i need to put something instead of the LsVw.SelectedItem
    Last edited by salsa31; May 27th, 2012 at 12:54 PM.

  23. #103
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    Re: sending sms with listview and checkbox in listview

    something like this

    Code:
    Dim i As Integer
    Dim PhoneNumbers As String
    Dim PhoneArray() As String
    
    For i = 1 To ListView1.ListItems.Count
    If ListView1.ListItems(i).Selected = True Then
    PhoneNumbers = PhoneNumbers & ListView1.ListItems(i).SubItems(1) & ","
    End If
    Next
    
    PhoneArray = Split(PhoneNumbers, ",")
    For i = 0 To UBound(PhoneArray) - 1
    'Send Code... blah blah "mailto:" & PhoneArray(i)     'i will put example as debug.print
    Debug.Print "mailto:" & PhoneArray(i)
    Next

    i attached a quick small example of listview
    Attached Files Attached Files

  24. #104
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    i hope now u get the listview method

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

    Re: sending sms with listview and checkbox in listview

    Quote Originally Posted by salsa31 View Post
    this?
    It looks like they allow multiple <TO> tags.

    Have you tried that function that I posted ?

    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

    Usage:
    Code:
    '....
    lsXml = lsXml & "<BODY><CONTENT>" & Text1 & "</CONTENT><DEST_LIST>"
    lsXml = lsXml & getSelectedNums()
    lsXml = lsXml & "</DEST_LIST></BODY>"
    '...

    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,...

  26. #106

    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
    It looks like they allow multiple <TO> tags.

    Have you tried that function that I posted ?

    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

    Usage:
    Code:
    '....
    lsXml = lsXml & "<BODY><CONTENT>" & Text1 & "</CONTENT><DEST_LIST>"
    lsXml = lsXml & getSelectedNums()
    lsXml = lsXml & "</DEST_LIST></BODY>"
    '...
    where do i put this code?
    in the bttnsend?

    i replaced this - sXml = lsXml & "<TO>" & Text2 & "</TO>" - for this - lsXml = lsXml & getSelectedNums()

    but its not working
    Last edited by salsa31; May 28th, 2012 at 12:56 AM.

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

    Re: sending sms with listview and checkbox in listview

    "Not working" doesn't helps us to solve your issue !

    You have to explain what have you tried and what happened.


    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,...

  28. #108

    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

    i put this - sXml = lsXml & "<TO>" & getSelectedNums() & "</TO>"
    it dosnt give me any error
    and its not sending the sms to the specific phone number that i choose from the listview
    Last edited by salsa31; May 28th, 2012 at 12:57 PM.

  29. #109

    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

    tnx for everybody who tried to helpe me
    but theres sometimes you cant do nothing.
    useruseronline can you send me the code with the listbox plz?
    the full code yes?
    lsets say i want to send the sms through the listbox
    how do i do that?
    Last edited by salsa31; May 30th, 2012 at 01:57 AM.

  30. #110
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    Re: sending sms with listview and checkbox in listview

    I thought you told us your code was working and you could send sms to one number at a time.. If akhileshbc's code not working then why don't you use the example I gave you just loop throught the phone numbers selected and send one by one like you used to! We gave u anwsers and u still say its not working! The only change that you might need is to add a pause between each time you send an sms like the "sleep api" or timer control

    Sleep 500

  31. #111

    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 Max187Boucher View Post
    I thought you told us your code was working and you could send sms to one number at a time.. If akhileshbc's code not working then why don't you use the example I gave you just loop throught the phone numbers selected and send one by one like you used to! We gave u anwsers and u still say its not working! The only change that you might need is to add a pause between each time you send an sms like the "sleep api" or timer control

    Sleep 500
    its working if i send sms 1 by one
    but what if i want to send to all customers or to a few cutomers?
    i gave up on the listview beacuse it didnt work
    do you have an idea how do i send to all with the listbox?

  32. #112
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    ya u can send it by listbox but not by list view , ok ?

  33. #113

    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

    ok
    show me the code please

  34. #114
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    see the file
    Attached Files Attached Files

  35. #115

    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

    look this code
    sXml = lsXml & "<TO>" & Text2 & "</TO>"
    what do i write intsead of text 2?
    this is the sending code bro

  36. #116
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    list2.text

  37. #117

    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

    dosnt work

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

    Re: sending sms with listview and checkbox in listview

    Do one thing, replace that line with this:

    Code:
    sXml = lsXml & "<TO>number1</TO>"
    sXml = lsXml & "<TO>number2</TO>"
    In the above two lines, replace "number1" and "number2" with any 2 mobile numbers to test.

    See if the message was sent to those two numbers. If not, you could conclude that your API provider is preventing multiple recipients.


    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,...

  39. #119
    Hyperactive Member
    Join Date
    May 2012
    Posts
    339

    Re: sending sms with listview and checkbox in listview

    dont put this in the place where i write to put code
    sXml = lsXml & "<TO>" & Text2 & "</TO>"

    place this code in the send button where u want to send the number
    sXml = lsXml & "<TO>" & list2.text & "</TO>"

    then put this code in my button
    nameofursendbutton_click

  40. #120

    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
    Do one thing, replace that line with this:

    Code:
    sXml = lsXml & "<TO>number1</TO>"
    sXml = lsXml & "<TO>number2</TO>"
    In the above two lines, replace "number1" and "number2" with any 2 mobile numbers to test.

    See if the message was sent to those two numbers. If not, you could conclude that your API provider is preventing multiple recipients.

    yes its sending

Page 3 of 4 FirstFirst 1234 LastLast

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