Content aside
- Status Answered
- 7 days agoLast active
- 7Replies
- 98Views
-
3
Following
I have image elements in a table. I found that using the code "Images:=null" does not completely delete the images. How can I use code to completely delete them?
Take a look at this post.
thanks Fred
Hi Fred, can the latest function directly delete images now? (Previously, after setting Image := null, the image file would still be saved in the database, just not displayed.) Is there no need to use the old API to delete images anymore?
Well Ninox says:
To fully clear the file reference from an Image field, you need to manually set that Image field to
null
using scripting, such as:
removeFile(Image);
Image := null;
So as long as you do both you should be OK.
thank you
And for the code and an example database here.
thanks Steven