MPE/iX Intrinsics Reference Manual (32650-90875)

Chapter 7 329
Command Definitions (HP32208-HPLOACNMPROC)
HPCIPUTVAR
Passes the variable information specified in
itemnum
. Refer to Table 7-6.,
“HPCIPUTVAR Itemnum/Item Values,” on page 329.
Itemnum 14
Given the (Pascal) code fragment
...
my_var := 'TESTVAR ';
var_value := 'Hello world';
val_len := 11;
item := 0; { default }
...
HPCIPUTVAR(my_var, status, 2, var_value,
11, val_len, 14, item)
The value of
item
will set the type (and value) of
my_var
based upon an interpretation of
var_value
:
Table 7-6. HPCIPUTVAR Itemnum/Item Values
Itemnun Mnemonic Item Description
0
Itemnum/item
pair ignored
1 I32 Integer value assigned to specified variable name (input):
No other pairs are needed and, if specified, will cause an error. Default:
Not considered an integer value.
2 CA String value assigned to specified variable name (input):
Default: Not a string variables.
Note: Requires itemnum 11. Itemnum 14 may be used with strings to
set the type and value of
varname
.
3 I32 The Boolean value to be assigned to the specified variable name (input).
Nonzero for a true value, zero for a false value.
Default: Not a boolean variable.
11 I32V Actual length of value string assigned to variable name (input):
Itemnum
/
item
pair 11 must be passed whenever
itemnum
2 is passed.
14 I32 String interpretation (strings only; may be used only with
itemnum
=2)
(input).
If you specify
itemnum
=14, the value of its corresponding
item
defines
the type-representation (and the value) of
varname
based upon an
interpretation of the
item
paired with
itenum
=2. Refer to "Itemnum
14".
Default: 0 (zero).