System variables are built-in variables that Visual FoxPro creates and maintains automatically. They are designated as PUBLIC by default, but you can declare them as PRIVATE.
Note: |
---|
Recent Visual FoxPro features have replaced the functionality of many system variables. For more information, see the description for each system variable and Backward-Compatible Language Elements. |
The following table lists the types of Visual FoxPro system variables and their designation in expressions.
Variable type | Description | Expression |
---|---|---|
C |
Character |
cExpression |
D |
Date |
dExpression |
L |
Logical |
lExpression |
N |
Numeric |
nExpression |
O |
Object |
oExpression |
The following table lists all system variables, their types, and default values.
Variable | Type | Default value |
---|---|---|
C |
LEFT |
|
N |
80 |
|
N |
63 |
|
C |
Empty string |
|
C |
Empty string |
|
L |
.T. |
|
C |
Browser.app |
|
C |
Builder.app |
|
N |
0.0 |
|
N |
0.0 |
|
C |
Empty string |
|
C |
Empty string |
|
C |
Coverage.app |
|
N |
-1 |
|
N |
0.5 |
|
D |
Current date |
|
L |
.T. in FoxPro for MS-DOS |
|
C |
Empty string |
|
C |
FoxRef.app |
|
C |
Gallery.app |
|
C |
Empty string |
|
C |
Genhtml.prg |
|
C |
Genmenu.prg |
|
C |
Empty string |
|
C |
Genscrn.prg |
|
C |
Empty string |
|
C |
Empty string |
|
C |
Empty string |
|
N |
.5 |
|
N |
0 |
|
N |
0 |
|
L |
.T. in Visual FoxPro for Macintosh |
|
C |
Empty string |
|
N |
0 |
|
C |
FORMFEED |
|
N |
1 |
|
N |
0 |
|
N |
1 |
|
N |
Current column |
|
N |
1 |
|
C |
Empty string |
|
C |
Empty string |
|
C |
Empty string |
|
C |
NONE |
|
N |
32767 |
|
N |
66 |
|
N |
0 |
|
N |
0 |
|
C |
DEFAULT |
|
L |
.F. |
|
C |
Empty string |
|
C |
Empty string |
|
N |
1 |
|
L |
.F. |
|
N |
80 |
|
|
C |
HOME() + "REPORTBUILDER.APP" |
|
C |
HOME() + "REPORTOUTPUT.APP" |
|
C |
HOME() + "REPORTPREVIEW.APP" |
C |
HOME() + "SAMPLES" |
|
C |
Scctext.prg |
|
O |
FORM |
|
C |
Empty string |
|
C |
Spellchk.app |
|
C |
Empty string |
|
C |
Empty string |
|
N |
0 |
|
C |
Taskpane.app |
|
C |
–1 |
|
N |
0 |
|
C |
Toolbox.app |
|
N |
-1 |
|
C |
Empty string |
|
N |
0 |
|
L |
.T. in FoxPro for UNIX |
|
O |
Microsoft Visual FoxPro |
|
L |
.T. in Visual FoxPro for Windows |
|
C |
Wizard.app |
|
L |
.F. |