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

MsgFieldValue
Syntax
MsgFieldValue(travhandl, num_index);
travhandl
num_index
Description
Returns the value of a field in the current block.
Returns
str_fieldval
Examples
In the following examples, the Message contains the blocks blkA, blkB, and blkC structured as shown in the figure below.Click to enlarge
Example 65
The following Before Frame script in a PageOUT Process returns the value of the second field in the first instance of block blkA:
$handle=MsgFrameOpen("*", 0);
$fieldValue=MsgFieldValue($handle, 2);
 
Example 66
The following Before Frame script returns the value of the second field in the 5:th instance of block blkA:
$handle=MsgFrameOpen("blkA:5", 0);
$fieldValue=MsgFieldValue($handle, 2);
 
Example 67
The following Before Frame script returns the value of the second field in the second instance of block blkB in the first instance of block blkA:
$handle=MsgFrameOpen("blkA:1/blkB:2", 0);
$fieldValue=MsgFieldValue($handle, 2);
 
OpenText StreamServe 5.6 Updated: 2013-03-01