[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
??
----------------------------------------------------------------------------
The other file output command is the ?? or double question mark
command. Like ?, this command was borrowed from Dbase.
Syntax:
?? <expr1>[,<expr2>...]
<expr1> is a string value that may come from a constant, a
variable or be the result of some expression or function call.
Successive string expressions may be part of one statement, with
each expression separated by commas.
The ?? command causes the string to be written straight out to
the output file. The string is not preceded by a carriage
return-line feed sequence. You can think of this command as
meaning "write the following string on the current line in the
output file".
Example:
?? "this string first"
?? "this string next"
will produce
this string firstthis string next
in the output file. Notice that the second string was placed
right after the first. This command is intended for those
instances when any line in the target language is to be generated
in a piece-meal manner. The following code fragment uses the ??
command to build both SAY and GET statements in one loop:
for all vars
? "@"+var.row+","+var.col
if var.input
?? " GET "
else
?? " SAY "
endif
?? var.name
next
would produce code which may look like
@ 10,10 GET var1
@ 11,10 SAY var2
See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson