Post Reply 
Delete all user defined variables
06-01-2015, 03:36 PM (This post was last modified: 06-01-2015 04:12 PM by Didier Lachieze.)
Post: #4
RE: Delete all user defined variables
(06-01-2015 02:46 PM)DrD Wrote:  Aside from block loops, is there another way to delete ALL of the user defined variables in the HVars list, via command line or programmatically (without the Vars or Mem keys)?
This seems to work: EXECON("DelHVars(&1)",HVars)
It deletes all user defined variables and returns a list with the status of each variable deletion (should be a list of "1"s if deleted successfully).

EDIT: if you want to avoid an error message "Error: Invalid input" if there is no user defined variables, then you can do:
IFTE(SIZE(HVars),EXECON("DelHVars(&1)",HVars),0)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Delete all user defined variables - DrD - 06-01-2015, 02:46 PM
RE: Delete all user defined variables - Didier Lachieze - 06-01-2015 03:36 PM



User(s) browsing this thread: 1 Guest(s)