For simple variables, there is no way to set a variable to undefined. Since the Cache Script object has free input, there is no need to set the link to the object to NULL, just change the value of the link to something else, most often an empty string, and the garbage collector will clear objects for which there is no active link.
For all practical purposes, just set this variable to the empty string "". If not, can you expand your question?
The properties of an object in a Script cache object are never resolved to undefined. If the value is undefined (because it has a SQL NULL value or a value has never been assigned), then the property will be resolved to an empty string value. If you want the property to contain an SQL null view, you can do SQL Insert or Update on the row corresponding to this object and set this field to NULL. If you set an empty string for an object property and save it, the SQL string for this object will not be NULL, but will have an empty string.
Basically, in the representation of objects there is no abstract representation of NULL. There are serialized values ββfor SQL NULL that allow NULL in the SQL view and an empty string in the Objects view.
By the way, the serialized NULL value in the SQL view is an empty string, and the serialized empty string is ASCII 0.
source share