Script functions reference > Script functions in alphabetical order > M > MsgNumFields

MsgNumFields
Syntax
MsgNumFields(travhandl);
travhandl
Description
Returns the number of fields in the current block.
Returns
num_fields
Example
In this example, the Message contains the blocks blkA, blkB, and blkC structured as shown in the figure below.Click to enlarge
The following Before Frame script in a PageOUT Process returns the number of fields in the first instance of block blkB in the first instance of block blkA:
$handle=MsgFrameOpen("blkA:1/blkB:1", 0);
$numFields=MsgNumFields($handle);
OpenText StreamServe 5.6 Updated: 2013-03-01