I import images very frequently. In the script I wrote "delete last image" to prevent gathering. No problem.
But when meanwhile an image is imported that has to stay, it is removed, when an new image is imported.
Is there a trick for a "must image" to stay .
For the moment I created 2 buttons, one with, the other without "delete last image".
I played with "newImage" but no succes.
trick for last image
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10102
- Joined: Fri Feb 19, 2010 10:17 am
Re: trick for last image
Your post is very difficult to understand.
Please try and explain it rather better.
Please try and explain it rather better.
Re: trick for last image
Hi Rob,
well, "last img" is always "last img", but YOU, as a developer, need to manage which images can be deleted and which ones NOT!
There is not trick in Livecode for that!
Best
Klaus
well, "last img" is always "last img", but YOU, as a developer, need to manage which images can be deleted and which ones NOT!
There is not trick in Livecode for that!

Best
Klaus
Re: trick for last image
Hi.
Set a custom property of the images that must not be deleted. Then in your handler, (pseudocode)
Craig Newman
Set a custom property of the images that must not be deleted. Then in your handler, (pseudocode)
Code: Select all
if the doNotDelete of last image = "justDont" then exitDelete --could be any image, of course