9.7.5.6 Including multiple ALink keywords in a paragraph or marker
An enhanced version of the [ALinkButton] macro (see §9.7.5.4 Building an ALink button object from an ALink keyword list) parses each $$AlinkKeys list item for multiple ALink keywords, allowing you to include several keywords (separated by semicolons) in each ALinkTarget paragraph or Subject marker.
This version of the [ALinkButton] macro uses two additional macro variables:
This button macro invokes the same [ALinkButtonStart], [ALinkButtonParam], and [ALinkButtonEnd] macros described in §9.7.5.4 Building an ALink button object from an ALink keyword list:
<$ALinkButtonStart><$$ALinkKeyItem=1><$$ALinkParamNum=1>\
<$$ALinkParamText=$$ALinkKeys[$$ALinkKeyItem]>\
<$$ALinkKeyItem++><$$ItemContent=$$ALinkParamText>\
<$_while ($$ItemContent contains ";")>\
<$$ALinkParamText=($$ItemContent before ";")>\
<$$ALinkParamNum++><$ALinkButtonParam>\
<$$ItemContent=($$ItemContent after ";")>\
<$$ALinkParamText=$$ItemContent><$ALinkButtonParam>\
<$_endrepeat><$ALinkButtonEnd><$$ALinkParamCount=0>\
See §28.6.4.3 Using loop structures for an explanation of loop controls $_repeat and $_while.
See §28.6.5 Specifying substrings in expressions for an explanation of string operators contains, before, and after.
> 9 Generating Microsoft HTML Help > 9.7 Creating related-topic links for HTML Help > 9.7.5 Using the same format or marker for ALink keywords and jumps > 9.7.5.6 Including multiple ALink keywords in a paragraph or marker