Follow FinalBuilder on Twitter.

how to set delay to variable
Last Post 19 Jan 2010 08:58 AM by Peter Kellner. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Peter KellnerUser is Offline
New Member
New Member
Posts:63
Avatar
Send Private Message

--
09 Jan 2010 12:06 PM  

The Delay action does not seem to let me put a %delayseconds% type variable in the counter fields for setting.  I want to set the delay to x number of minutes based on some variable.  How can I do that?

Peter Kellner Microsoft ASP.NET MVP http://peterkellner.net
Paul SamwaysUser is Offline
FinalBuilder Staff
Veteran Member
Veteran Member
Posts:1346
Avatar
Send Private Message

--
10 Jan 2010 03:17 PM  
Hi Peter,

Unfortunately this is one of the limitations of using the numeric up/down control, to work around it just set the value in the action's BeforeAction script event, so for example:

[Javascript]
Action.Delay = Delay_Variable;

Where "Delay_Variable" is the name of the variable containing the number of milliseconds that the delay should be set to.

Regards,
Paul.
Peter KellnerUser is Offline
New Member
New Member
Posts:63
Avatar
Send Private Message

--
19 Jan 2010 08:58 AM  

Thanks, I think I just wrote my longest blog post on the simplest thing to do, but I bet it will help others. Though incredibly simple, sometimes it's not as obvious as you might think:

 

peterkellner.net/2010/01/19/finalbu...ipt-delay/

Peter Kellner Microsoft ASP.NET MVP http://peterkellner.net
You are not authorized to post a reply.

Active Forums 4.2
Copyright © 2010 VSoft Technologies Pty Ltd Terms Of Use Privacy Statement