
7 RASExpress Script Language
CommPlete Communications Server 175
PARITY parity(string option) : integer;
Sets the parity for the communication channel. The option that is passed should be
one of the following : NONE, ODD, or EVEN. If connection is not initialized or an
invalid option is passed, the command is ignored and 0 is returned. If a valid option
is passed, the parity is set and 1 is returned.
Example
See baudrate command.
PROC PROC <procedure_name> [ (<parameter_list>) ] [ : <var_type>] ;
This statement declares the beginning of a procedure, which will be executed until
ENDPROC is encountered. Execution of a script file starts at PROC MAIN, which
cannot have any arguments. All procedures must be declared before they are used.
Example
/* This script illustrates the proc command. */
proc main;
display("This is a simple procedure.^M") ;
endproc
proc xplusy (integer x, y): integer;
integer sum;
sum=x+y'
return(sum) ;
endproc
QUIT quit;
Terminates the execution of the script.
Example
/* This script illustrates the quit command. */
proc main;
display("Press any key to exit the program...");
getkey;
display("^J^M");
quit;
endproc
Komentáře k této Příručce