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
Re: sending sms with listview and checkbox in listview
Originally Posted by akhileshbc
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.
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?
Re: sending sms with listview and checkbox in listview
Originally Posted by useruseronline
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>"
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
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
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
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.
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.
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
Re: sending sms with listview and checkbox in listview
Originally Posted by Max187Boucher
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?
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