Professional Documents
Culture Documents
5619760
5619760
Visual
Foxpro’s
Commands
SET DEFAULT Command
• Syntax:
SET DEFAULT TO [cPath]
Parameters
• Syntax:
Create [filename│?]
Parameters
• Syntax:
APPEND [BLANK] [IN nWorkArea | cTableAlias]
[NOMENU]
Parameters
• Syntax:
DELETE [Scope] [FOR lExpression1] [WHILE
lExpression2] [IN nWorkArea | cTableAlias]
[NOOPTIMIZE]
Parameters
• Syntax:
SET PATH TO [Path] [ADDITIVE]
Parameters
CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'data\testdata')
USE products && Opens Products table
USE customer IN 0 && Opens Customer table
GO BOTTOM IN products
CLEAR
? RECNO('products')
GO TOP
? RECNO( ) && Displays 1
GO 5
? RECNO( ) && Displays 5
? │ ?? Command
If you include the FONT clause but omit the point size
nFontSize, a 10-point font is used. If you omit the FONT
clause, and output for the ? or ?? command is placed in
the main Visual FoxPro window, the main Visual FoxPro
window font is used for the output. If you omit the
FONT clause, and output for the ? or ?? command is
placed in a user-defined window, the user-defined
window font is used for the output.
Note: If the font you specify is not available, a font with similar
font characteristics is substituted.
??? Command
• Function: Sends output directly to the printer.
• Syntax:
• ??? cExpression
Parameters
Spinner control
Spinner control…
Tip:
To prevent users from adding records to a table while
browsing a table, include the NOAPPEND clause in the
BROWSE command.