Macro Language Reference > Macros > Tag > ttagcopy
  
ttagcopy
Description
Copies the contents of one text tag into a brand new tag, which may optionally be of a different tag type.
 
Example 272. Copy a tag to new tag of same type
The example below uses ttagcopy to copy a style tag called body into a new style tag called bodyold.
ttagcopy "body", "bodyold"
 
Example 273. Copy a text stream into a printer control stream
The example below copies a text stream called Tx1 to a printer control stream called pc1:
ttagcopy "tx1" "pc1.pc"
You can also convert a tag of one type into another when copying it, by including one of the tag type codes listed under ttagmk as an extension to the tag name.
Syntax
ttagcopy source tag:s? ( new tag:s? )
ttagcopy
[no parameter]
Invoke the Copy text tag(s) dialog box
source tag
The name of the tag to be copied.
new tag
The name of the new tag. This must be a tag name that does not already exist.
Related Links