What is a Variable?
Description
Variables are used to store values for later use. To hold these values, you must declare locations in memory where each of these values can be stored. This memory location is called a variable. A variable contains any unit of information like a number, a date, or a sequence of alphanumeric characters (called a string). The type of information a variable contains is always the same, but its contents can be changed easily and quickly.
More about Variables
A description of the different Variable Data Types supported by Alpha Anywhere.
An explanation of the way variables should be named.
The syntax for fully qualified variable names.
A variable is implicitly defined by assigning it a value with the assignment operator (" = ").
Explicit Type Declaration: an explanation of why to use the DIM statement.
An explanation of the ways Alpha Anywhere automatically assigns the type of variables created by combining 2 variables of different types.
How and when to define variables in an AUTOEXEC script.
The duration of a variable definition, and the extent to which it is accessible from other places, is called the variable's scope.
A definition of local variables.
A definition of session and global variables.
An explanation of addin variables.
An explanation of calculated fields.
An explanation of pointer variables.
An explanation of dot variables.
A graphical illustration of the persistence of different variable types.
How to use arrays and collections of variables.
An explanation of variable indirection and the EVAL() function.
How to pass variables by reference to functions.
How to create a variable of type F (function).
An explanation of how to execute an Xbasic command stored in a variable using EVALUATE_TEMPLATE().
Understanding the scope of variables created within WHILE ... END WHILE statements.
Using the WITH ... END WITH statement to select a variable in the local variable frame.
A description of Alpha Anywhere system variables.
How to use ASK variables.
Testing variables for NULL values.
How to use session variables in an A5W web page.
See Also