External Interfaces > RealWeb > RealWeb API > Text Formatting > Miscellaneous > RWA_TAG_ATTR

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

RWA_TAG_ATTR (RealWeb) (rwa_tag_attr.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

RWA_TAG_ATTR


Purpose

Uses tag names taken from a dynamic arrayClosed to format attributes from a second dynamic array. For each attribute in the tag list, the corresponding attribute in the second array is enclosed in a pair of tags of the specified type. Appends generated code to vString.

Syntax

RWA_TAG_ATTR(vString, aTagList, aAttrList, Start, aClass)

Parameters

vString A variable containing the string to which the generated code is appended. On return, the variable contains the modified string. If the string does not exist, it is created.

aTagList A dynamic arrayClosed containing a list of tag names, one per attribute.

aAttrList A dynamic arrayClosed containing a list of attributes to be tagged, one per attribute.

Start The number of the first attribute in aAttrList to be tagged. Item numbering starts from 1.

aClass A dynamic arrayClosed that can be used to set attributes of the tags. For information about using aClass, see The aClass Parameter.

Example

If TAGS contains the following:

"type":AM:"make":AM:"model":AM:"colour"

and CAR contains the following:

"4-door saloon":AM:"Ford":AM:"Escort":AM:"Blue"

calling

RWA_TAG_ATTR(STRING, TAGS, CAR, 1, "")

appends the following to STRING:

<type>4-door saloon</type>
<make>Ford</make>
<model>Escort</model>
<colour>Blue</colour>

RealityV15.1 (MoTW) Revision 7Comment on this topic