setxtagvalue
PAGE
,
TAG
,
DATA
,
SEP

The setxtagvalue statement changes the contents of a tag.


Parameters

This statement has four parameters:

page – text that may contain tag (must be a field or variable).

tag – tag name.

data – new text for tag contents.

sep – optional separator if we need to add this tag to page


Description

This statement changes the contents of a tag.

For example, suppose a variable named Page contains this text within it.

<NAME>Mark Wilson</NAME>

To change this name to John Smith, use this code.

setxtagvalue Page,"NAME","John Smith"

What if there wasn’t already a <NAME></NAME> tag pair? In that case, a new tag pair will be added at the end of the text in the variable. If you want to make sure this new tag pair is on a new line, add a separator parameter like this:

setxtagvalue Page,"NAME","John Smith",cr()

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.