
every so-many seconds execute?
Quote:
>I'm building a little app that displays pictures downloaded with http.
>I've made an checkbox and a editfield, and now I would like to create
>some code which does:
>1. check if the checkbox is on
>2. if it's on
>3. check the value (a number, representing seconds) of the editfield
>4. excecute some code (eg reload the picture) every so-many seconds
>Is there a simple way to do this?
Yep.
if checkbox.value=true then
timer.period = val(editfield.text)
timer.mode = 2
end if
Now put this code in whereever you want it executed and then put your picture
reload code in the timer.
-Nick Vellios
http://www.squirrelsw.com
Visual MacStandardBasic - Quick, fast, efficient Visual Development tool. Get
your copy today! www.macstandardbasic.com