HP 3000 Manuals

<STR> [ HP DeskManager Customization ] MPE/iX 5.0 Documentation


HP DeskManager Customization

<STR> 

Syntax 

<STR {string} {index} {count} >

where:

string                quoted string
index                 numeric value in the range 1 to 256
count                 numeric value in the range 1 to 256

Description 

<STR> returns a quoted substring of string from character index for count 
characters.  If the start position is after the end of the string a null
string is returned.  If the finish position goes beyond the length of the
string, a substring from the start position to the end of the string is
returned.

See also:  <STRLEN>, <VAR>.

Example 

     &SAVE ch <STR <VAR qip> 1 1>

This saves the first character stored in the variable qip in ch.  In
other words, if qip has "read" in it then ch contains "r".



MPE/iX 5.0 Documentation