Page 1 of 1

Using a variable with seconds

Posted: Fri Dec 20, 2019 11:06 pm
by paulalsmith1000
Evening anyone,

I'm not sure this is the right section, but I couldnt see anything similar on the other topics:

Could someone tell me if I can use a variable with seconds?

Ie instead of 'send command to me in 10 seconds,' I wanted to write 'send command to me in variable seconds.

This is because the app user chooses the above delay, but it doesn't work. It looks like it ignores the variable and treats 'seconds' as 1 second.

Any help would be much appreciated.

Re: Using a variable with seconds

Posted: Fri Dec 20, 2019 11:23 pm
by Klaus
Hi Paul,

this works here:

Code: Select all

...
put 5 into tSecs
send "beepen" to me in tSecs seconds
...
and my handler "beepen" fired after 5 seconds!


Best

Klaus

Re: Using a variable with seconds

Posted: Sat Dec 21, 2019 10:57 am
by Klaus
Since this is definitively NOT OFF-TOPIC, I will move this thread to the Beginners section. 8)

Re: Using a variable with seconds

Posted: Sat Dec 21, 2019 12:07 pm
by paulalsmith1000
Hi Klaus

Thanks v much.

You are a fountain of knowledge as ever.

Kind regards

Paul.