November 22, 2024, 09:13:31 AM

News:

Got VSA?  Want to use your Prop-SX?  Now you can!  See the VSA section of the Library forum for Prop-SX code that works with VSA.


Maximum Delay Time

Started by quimax2k, January 08, 2008, 09:41:31 PM

Previous topic - Next topic

quimax2k

January 08, 2008, 09:41:31 PM Last Edit: January 09, 2008, 08:57:38 AM by JonnyMac
hello all,

i cant seem to find the answer for this though i am sure its something i am just over looking..  on the prop1 what is the max delay time you can set?

thanks
rob


EDIT: I changed the topic title to make it useful for searches.  JW

JonnyMac

The maximum delay for a single line of code is 65,535 milliseconds, or 65.535 seconds.  Again, that's one line of code; you call a subroutine set to a known delay time and then call that -- again, the maximum value (due to the size of a Word) would be 65,535 units.  For example:

Delay_Seconds:
  IF seconds = 0 THEN Delay_Secs_Exit
    PAUSE 1000
    seconds = seconds - 1
    GOTO Delay_Seconds

Delays_Secs_Exit:
  RETURN


To use this to cause a 15 second delay, you would do this:

  seconds = 15
  GOSUB Delay_Seconds



Do us a favor, please: in the future, use a Subject Line that describes the question so that others can search on it -- "Help!" is not very helpful when other members are doing searches.  Thanks!
Jon McPhalen
EFX-TEK Hollywood Office