HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 System Debug Standard Functions

func cisetvar

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Sets a new value for the specified CI (MPE XL Command Interpreter) variable.

Syntax

   cisetvar (civarname newvalue)  

This function is implemented by calling the HPCIPUTVAR intrinsic. String variables are stored as strings. They are not interpreted numerically.

Formal Declaration

   cisetvar:bool (civarname:str newvalue:any) 

Parameters

civarname

The name of the CI variable to be assigned a new value.

newvalue

The new value to be assigned to the specified CI variable.

Examples

   $nmdebug > wl cisetvar ("testvar", #123);

   TRUE

Assign the value decimal 123 to the CI variable named testvar. The result, TRUE, implies that the assignment was successful.

   $nmdebug > wl civar ("testvar"):"d"

   123

   $nmdebug > :showvar testvar

   TESTVAR = 123

Confirm that the value was set by retrieving the value using the CIVAR function and by executing a CI command to display the variable's value.

Limitations, Restrictions

none

Feedback to webmaster