gettaglocation
PAGE
,
PREFIX
,
SUFFIX
,
START
,
LENGTH

The gettaglocation statement locates the first matching tag within some text.


Parameters

This statement has five parameters:

page – text that may contain tag.

prefix – opening tag.

suffix – closing tag.

start – field or variable that will contain the position of start of tag (or 0 if tag not found).

length – field or variable that will contain the position of length of tag (or 0 if tag not found)


Description

This statement locates the first matching tag within some text. This example assumes the current database has a field named Page that contains HTML.

local tableStart,tableLen
gettaglocation Page,"<table","</table>",tableStart,tableLen

If the Page field contains one or more tables, the tableStart and tableLen variables will be set with the position and length of the first table in the text.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.