
7 RASExpress Script Language
CommPlete Communications Server 165
DROPCONNECTION dropconnection;
Terminates the current connection. If this function is called, then the script is aborted.
Example
/* This script illustrates the dropconnection command. */
proc main;
if connected theÿ
display("Terminating connection, press any key...");
getkey;
dropconnection;
endif
endproc
ENDPROC endproc
This command indicates the end of a procedure. It complements the proc command
in every script file.
EXIT exit;
This command terminates the execution of the script.
Example
/* This script illustrates the exit command. */
proc main;
display("Press any key to exit the script...");
getkey;
display("^J^M");
exit;
endproc
FCLOSE fclose(integer file_handle) : integer;
Closes the given file_handle. If file_handle is negative or invalid, 0 is returned; other-
wise 1 is returned.
Example
See fcreate command.
Komentáře k této Příručce