Makestring, Message, Setlist – HP StorageWorks XP Remote Web Console Software User Manual
Page 241: Makestring message setlist
Table 81 If/EndIf Comparison Symbols
Meaning
Symbol
Expression 1 is equal to Expression 2.
= =
Expression 1 is less than Expression 2.
<
Expression 1 is less than or equal to Expression 2.
<=
Expression 1 is greater than Expression 2.
>
Expression 1 is greater than or equal to Expression 2.
>=
Expression 1 is not equal to Expression 2.
!=
MakeString
The MakeString command allows you to edit a string and/or convert numeric values to string
characters. When using the MakeString statement several conditions must be met. For each format
control string statement there must be an $Item statement. The format control string of expression
1 must be enclosed in quotation marks (““). If you set a value exceeding the maximum length of
a string, the extraneous portion of the value will be not set.
“MakeString Expression Definitions”
defines the two expression statement in the MakeString command. The format for the
MakeString command is: MakeString $D= output buffer ,$Fmt= expression 1,$Item= expression
2
MakeString $D= output buffer ,$Fmt= expression 1,$Item= expression 2
Table 82 MakeString Expression Definitions
Expression 2
Expression 1
Expression 2 is any expression not containing a list
reserved variable (must be constant or work variable).
Expression 1 is one of three format control strings ($Fmt):
•
%d Converts a 16-bit numeric expression to a decimal
number (0 - 65535).
•
%x Converts a 16-bit numeric expression to a
hexadecimal number (0 - 0xffff).
•
%sSets a string as it is.
For example, to create a MakeString statement that will convert the 16-bit numeric expression to
a hexadecimal number (0 - 0xffff) and set the string as it is, with an output buffer of _sMsg, the
command would be:
MakeString $D=_sMsgB
,$Fmt=
“
EndCode=(0x%x):%s
”
,$Item=_Result,_sMsgA
For the MakeString command listed above: _sMsgB = “EndCode=(0x110f):Error Occurred”.
Message
The Message command is not yet supported.
SetList
The SetList command allows you to assign specific items to a list. The format of the SetList command
is: SetList $D= output list,$S=expression(attribute of the items to be assigned to the list with a
numeric range of 0x0000 to 0xffff). For example, to set 0, 1, 2, 0x1e, and 0x1f to be displayed
in the Dev (Device) B list the command would be:
SetList $D=ilDevB,$S={0,1,2,0x1e,0x1f}
Internal Macro Commands
241