Delete specific variables from
all files in a book
You can also use the BookVars file
to delete variables. If you set the DeleteVarCode parameter to a
value (whatever you want, this example uses the string "~DELETE~"
as the value), then assign that value as the "definition" to the
variables you want to delete, the next time you run the Import Variables
command, those variables will be deleted (this will only delete
user variables; system variables cannot be deleted). For example,
the following sample file will delete the PRODNAME and PRODEXE variables
from all files in the book.
Attention: Be sure to use a unique string
for the DeleteVarCode to avoid inadvertently
Important: Marker variables are
not deleted or renamed through the Import Variables command. For
more information, see Known Limitations.
Note: In BookVars version 1.04 and earlier the
DeleteVarCode parameter was named DelVarCode. The old name still
works in version 1.07, but is not guaranteed to work in future versions.
You should update your files to use the new name.