Converting the string to time and adding the minutes to it.

Hi,

I will read a time from a text box in 24hrs format and put it into a variable. I need to add 30minutes to it.

Ex:
put readtext(searchrectangle) into timefield //Time field holds the value in 24hr format ex: 1530
put timefield + 30 into timefield //returns the value as 1590.

Actually i need the value to be returned as 1630.

Any help would be great


Do you mean that you want to add 60 minutes? 1530 is not a time format that Sensetalk would recognize; 15:30 could be recognized as a time. And then you could do this:
put formattedTime("%H:%M", "15:30" plus 60 minutes )