Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Assigning Values to Variables
◄Assigning Values to Variables► ◄Variables► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Assigning Values to Variables - Description
A variable is a name that refers to an object - a particular number,
string, or record. (A record is a variable declared to be of a user-defined
type.) Simple variables refer to a single number, string, or record. Array
variables refer to a group of objects, all of the same type. A numeric
variable, whether simple or array, can be assigned only a numeric value
(either integer, long integer, single precision, or double precision).
A string variable can be assigned only a character-string value. You can
assign one record variable to another only if both variables are the same
user-defined type. However, you can always assign individual elements of
a record to a variable of the corresponding type.
The variable must always match the type of data (numeric or string) assigned
to it.