Download to Numerit User`s Manual

Transcript
wmessage
Syntax
Operands
Description
wmessage(t,s)
t and s are strings
Opens a Warning message window where the string t is the window's title and the string s
is the message text. The user must click the OK button to continue program execution.
write
Syntax
Operands
Description
write f x,y,z,...
f is a file or a string
x,y,z,... are expressions
Writes the content of x,y,z,... to the file f. If f is a file it should be previously
defined by file or by binfile, if it is a string it should be defined as such (e.g., f =
""). Any number of items may be specified. The items are written one after another at the
current position in the file or at the beginning of the string.
If f is a text file or a string, the format of the written data is controlled by the current
setting of outwidth, outprec, outformat, and outzero. If f is a binary file the
data is written in its binary form.
Note: If this is the first file operation (the one that actually opens the file) the old data in the
file is first cleared and the position is set to the beginning of the file. To keep the old data,
you must use the pos command to set the current position in the file before writing (see the
section Files).
writeln
Syntax
Operands
Description
writeln f x,y,z,...
writeln f
f is a text file
x,y,z,... are expressions
Writes the content of x,y,z,... to the text file f and adds a new-line character at the
end. f should be previously defined by file. Any number of items may be specified. The
items are written one after another at the current position in the file. If no items are
specified, only a new-line character is written.
The format of the written data is controlled by the current setting of outwidth,
outprec, outformat, and outzero.
Note: If this is the first file operation (the one that actually opens the file) the old data in the
file is first cleared and the position is set to the beginning of the file. To keep the old data,
you must use the pos command to set the current position in the file before writing (see the
section Files).
writetab
Syntax
Operands
Description
writetab f x,y,z,...
f is a text file
x,y,z,... are expressions
Writes the content of x,y,z,... to the file f. f should be previously defined by file.
Any number of items may be specified. The items are written line by line as a table at the
current position in the file, namely, the first elements of x,y,z,... are written to the first
line, the second elements of x,y,z,... are written to the next line, and so on.
The format of the written data is controlled by the current setting of outwidth,
outprec, outformat, and outzero.
Note: If this is the first file operation (the one that actually opens the file) and the file
contains data, the data is first cleared and the position is set to the beginning of the file. To
keep the old data, you must use the pos command to set the current position in the file
before writing (see the section Files).
Note: If this is the first file operation (the one that actually opens the file) the old data in the
131