The question sign is one of the most useful commands in ASSIST. It accepts any expressions and evaluates them according to dBASE rules. For example:
GREETING. However, if you had
previously
assigned the string "Hello!" to the variable GREETING (using the
assignment
operator: GREETING := "Hello!" ), the computer will find it and answer:
Hello!."Y" and "N" stand for special dBASE logical expressions.T.and.F.(denoted by two dots; about other expressions of this type see below).
The last examples demonstrates the use of a dBASE function as an expression. You can use any valid dBASE expressions as input to the ? commands (and some others, too - see below). So now we will pass on to the important question of the structure of dBASE expressions. You will find much of this information very useful (if you are not yet acquainted with dBASE) because it can help you in lots of file operations (LOCATing/SEEKing, INDEXing, SORTing, LISTing etc.).
One more remark about the ? command. Star4Win, like StarLing, has a built-in interpreter. You may write a .prg file and execute it by typing: "DO name of the .prg" in the ? window. However, the syntax of the built-in interpreter is somewhat different from the standard DBase language. This, and a great number of new functions and procedures available for use is covered in other Help sections. For details about the interpreter, see STAR4WIN PROGRAM INTERPRETER.
The ? window can also be used to run external executable files; to enter a DOS command you can type "DOS " followed by the command name (e.g. DOS dir).
In Star4Win you can also call internal procedures
(such as NOTEFIELD, COMPOSE etc.) as functions
using the ASSIST ? option.
It means that entering COMPOSE() in the ? window will have the same
results
as running the COMPOSE procedure from the
Procedures option of the main menu.
See also: Syntax of xBase expressions, Standard xBase functions, StarLing / Star4Win functions.
[Compatibility: The StarLing clauses PRINT ON/OFF,
DECIMALS ON/OFF are not supported in Star4Win].