Clear Binary Variable
malkishtini
malkishtini at gmail.com
Thu May 14 16:34:53 EDT 2020
This is clearing the binary var for me: (8.1.7)
Do ivBinary.$assign() ;;This will make it null
Do ivBinary.$assign('') ;;this will return empty
Mayada
-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of Michael Houlberg
Sent: Thursday, May 14, 2020 4:17 PM
To: OmnisDev List - English
Subject: Clear Binary Variable
Omnis $listers:
How do I clear a binary variable? This variable holds an image, but when I load a new record which doesn’t have an image attached to it, I want to clear it. Then when another record has an image, I want it to display that image again.
Calculate ivBinary as “" ## this leaves the variable in a state where it can’t be assigned a new image later
Do ivBinary.$clear() ## doesn’t clear it.
Do ivBinary.$destruct() ## doesn’t clear it.
Do bitclear(ivBinary,1,binlength(ivBinary)) ## this works OK, but just turns the binary into all zeroes, preserving it’s previous length. The picture control retains a little square, like a missing image.
Thanks,
Michael Houlberg
Houlberg Development, LLC
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list