Most Effecient way to repeat a handler/function
dunbarx at aol.com
dunbarx at aol.com
Mon Feb 10 00:16:10 EST 2014
Hi.
Doesn't this depend on the nature of the task? For example, in your "repeat until" experience, does the situation naturally call for a condition to be met, and then a different action taken, that is, that the repeat end at that specific time?
The construct:
on doSomething
blahBlahBlah
if <condition> then send "doSoemthing" to me in 1
end doSomething
Is really just another way to create a "loop", albeit with many advantages.
So if you are familiar with this sort of thing as well as the handful of repeat variants, it would seem that the task dictates the selection of which to use. Is there some special problem you have where you are uncertain which way to go?
Craig Newman
-----Original Message-----
From: Nakia Brewer <Nakia.Brewer at westrac.com.au>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sun, Feb 9, 2014 5:16 pm
Subject: Most Effecient way to repeat a handler/function
Hi,
What is the best way to keep repeating a handler/function.
In the past I have placed a 'repeat until local variable = false' in the handler
to keep it repeating but I don't imagine this is the most efficient way.
Am I better off using the send option or dispatch ?
Any opinions would be appreciated.
COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain
confidential proprietary or privileged information. If you are not the intended
recipient, you are strictly prohibited from using, reproducing, disclosing or
distributing the information contained in this email without authorisation from
WesTrac. If you have received this message in error please contact WesTrac on
+61 8 9377 9444. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. We reserve the right to monitor all e-mail communications.
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list