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

MsgNextBlock
Syntax
MsgNextBlock(travhandl);
travhandl
Description
Moves to the next block.
Returns
1
0
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 name of the first instance of block blkB in the first instance of block blkA. Then it moves to the next block in the Message tree, and returns the name of this block (blkC):
$handle=MsgFrameOpen("blkA:1/blkB:1", 0);
$blockID1=MsgBlockId($handle);
MsgNextBlock($handle);
$blockID2=MsgBlockId($handle);
OpenText StreamServe 5.6 Updated: 2013-03-01