Variables

See Also   Example

A variable is a memory location whose value can change throughout the operation of a program. A variable can contain any data type value. You can change the value of a variable at any time. This option enables you to monitor the status of anything that changes throughout the operation of an application.

Variables exist only while an application is running or in the Visual FoxPro session in which they are created. To specify the scope of a variable, use the LOCAL, PRIVATE, and PUBLIC keywords.

Creating Variables

To create a variable, store a value to a named Visual FoxPro element using the STORE command or the  = (equal) operator.