GSAK (Geocaching Swiss Army Knife)
 

Contents - Index


RemoveVar (function)

RemoveVar(sVarName) : Boolean

RemoveVar() allows you to remove any GSAK variable. It would probably be used mainly with the persistent variables, but there is no reason why you can't use it with normal variables as well if you find a need.

Note: the same "gotcha" applies to RemoveVar() as VarExists() - use the same recommended method to define the variable you want to remove. This function returns a boolean value so you can determine if the variable was actually found to remove. Regardless, after this function is run you can be sure the variable with that name is no longer defined in the macro.

Warning: Removing and recreating variables is very resource hungry (read time consuming) in the raw macro engine. This is not something I would recommend doing continuously (in a loop for example).
 
Summary
Copyright 2004-2008 CWE Computer Services  
Privacy Policy Contact