Chipp-

Friday, August 10, 2012, 12:51:01 AM, you wrote:

> on clearTempImgs
>    repeat with x = the number of images down to 1
>       if the short name of img x is "temp" then delete img x
>    end repeat
> end clearTempImgs

less confusing alternative:

if the short name of img x begins with "temp" then...

better yet, start with the images in a group. Then you just

delete group "imageGroup"

One line of code and no confusion about multiple controls with the
same name.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to