Quote from
Gaev on December 21, 2019, 6:28 pm
@smnmhmdy
From the Help file ...
In order to delete a variable created with DefineVar, you must first re-declare the variable as “Undefined”, then clear it with SetVar. For example:
DefineVar "[Birthdate]" "Undefined" "" "Global" ""
SetVar "[Birthdate]" ""
... so this works ...
DefineVar "[gkBool]" "Boolean" "" "Global" "True"
AlertBox "gkBool" "[gkBool]"
DefineVar "[gkBool]" "Undefined" "" "Global" ""
SetVar "[gkBool]" ""
AlertBox "gkBool After" "[gkBool]"
@smnmhmdy
From the Help file ...
In order to delete a variable created with DefineVar, you must first re-declare the variable as “Undefined”, then clear it with SetVar. For example:
DefineVar "[Birthdate]" "Undefined" "" "Global" ""
SetVar "[Birthdate]" ""
... so this works ...
DefineVar "[gkBool]" "Boolean" "" "Global" "True"
AlertBox "gkBool" "[gkBool]"
DefineVar "[gkBool]" "Undefined" "" "Global" ""
SetVar "[gkBool]" ""
AlertBox "gkBool After" "[gkBool]"
luishp, SmnMhmdy and 2 other users have reacted to this post.
luishpSmnMhmdyproforma.guyotmazzu001