What was that thing with Photoshop images?

Mark Wieder mwieder at ahsoftware.net
Fri Aug 10 11:24:59 EDT 2012


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
 mwieder at ahsoftware.net





More information about the use-livecode mailing list