i am getting this error whether i do add a number using phonenumberpicker or without it, the issue must be at the clock1.timer part but i dont know what exactly is wrong
as i saw many of the similar topics using clock, i used it too. i followed basically this TextGroup (Part 2) but the code isnt working as it should
You are using a piece of blank text as an index into a list.
Indexes can only be numbers 1,2,3,...
I blame these blocks:
Also to send to multiple numbers:
upon looking into your explanation, i did this
good news and bad news tho
the messages are now being sent, BUT the bad news is that the message is automatically being sent, just by opening the initialising screen or just refreshing the companion screen. without me tapping any button. that too, it sends the sms to ONLY the first number and not the rest.
when the set texting1.message to was in the smsbutton.click function, it showed the error of "text is null"
Can't read your blocks. In Blocks Editor right click on empty space and Download Blocks as Image. Post that here.
Your nticks
value cannot be 0, AI2 list indexing starts at 1. Use length of list block.
when i put nticks to one
it constantly sends sms to the first number over and over again without any prompt of a button
just by initialising the screen or refreshing the companion screen, it starts sending sms over and over again
Should be +1
Untick Clock timer Enabled in the Designer, and manually start the clock in your blocks
okay so, this actually works? BUT theres one problem to it
lets say i added 3 numbers to our phonenumbers list, so when i press the button, only last two numbers get an sms sent and not the first one added in the list, similarly if i add 5 numbers to our list, when i press the button, it sends an sms to last 4 contact numbers saved and not the first one. why would that be?i men i know whats the issue, but how can we fix it? also if i rearrange the next procedure like this. it skips the last number added to send an sms and sends the sms to all the ones added before it.
Look at my blocks again.
Your nticks can be set to 0 to begin with, but then it will be set to 1 in the next procedure on the first run.
You need to move that nticks = nticks + 1
block above the set PhoneNumber block (like it is in my blocks)