Modifies existing definitions, appends new definitions to a tag group file, or creates new tag group files. Before using this method, use RetrieveDefinition method to read in the definitions you want to modify or append to.
You should not delete definitions by omitting them from an update. Instead, to delete a tag group definition, you delete the tag group file and then add all the definitions you want to keep.
Syntax
object.UpdateDefinitionTagGroupName, Count, TokenList, ReplacementList, DescriptionList
Properties
The UpdateDefinition method syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
TagGroupName |
String. The name of the tag group file in the Picture path to update. |
Count |
Short. The number of symbols in the tag group file. |
TokenList |
Variant. The array of symbols. The array index ranges from 0 to Count-1. |
ReplacementList |
Variant. The array of substitutions. The array index ranges from 0 to Count-1. |
DescriptionList |
Variant. The array of descriptions associated with each substitution. The array index ranges from 0 to Count-1. |
Remarks
Use the string Trim methods to ensure that there is no whitespace in either the TokenList entries or the Replacement list entries in the UpdateDefinition Tag Group File.
Make sure that Count correctly indicates the size of the array you pass into UpdateDefinition. If it is not correct, you can lose substitutions or you can get a crash.