Hello Guys,
Im struggling to find an easy way (Hoping for a UDFB) or simple alternative
to take a TIME value (time remaining from a timer) and put in the middle of STRING text to send as an SMS.
I have got the sms and the inserting string valve into a string sorted,
However I cant insert time as it is into a string, and everything i convert it to is in an unusable format
I found the hard way, To convert to a DINT then /1000 to get seconds, then /60 for Min, then /60 for hours
Then its about another 6 rungs of code to get into a usable format to insert as a string
however I have to do a lot of these and its a LOT of code and memory
There must be an easier way someone has come up with?
Any ideas
Thanks
Shaun
Im struggling to find an easy way (Hoping for a UDFB) or simple alternative
to take a TIME value (time remaining from a timer) and put in the middle of STRING text to send as an SMS.
I have got the sms and the inserting string valve into a string sorted,
However I cant insert time as it is into a string, and everything i convert it to is in an unusable format
I found the hard way, To convert to a DINT then /1000 to get seconds, then /60 for Min, then /60 for hours
Then its about another 6 rungs of code to get into a usable format to insert as a string
however I have to do a lot of these and its a LOT of code and memory
There must be an easier way someone has come up with?
Any ideas
Thanks
Shaun