- page 2


Document Conventions

See Also

The following typographic conventions are used in Visual FoxPro documentation:

Example Convention
setup Bold font indicates words, other than language commands, that you must type.
In the Query Designer toolbar, choose Add Table. Bold font is also used in procedures to highlight interface elements such as the name of a window, menu, dialog box, toolbar, button, or option.
SET HELP TO Capital letters denote commands and keywords, acronyms, constants, and device names.
Press the TAB key.
Press SHIFT+F1.
Small capital letters denote the names of keys on the keyboard. A plus sign (+) indicates a combination of keys.
Buttons.vcx Initial capital letters indicate file names.
C:\My Computer\Working Files\Document Initial capital letters identify folders and directories. In a path, folders, directories, and file names are separated by backslashes.
http://www.microsoft.com/ Lowercase letters are used for URLs. Server, share, and file names are separated by forward slashes.
FontSize Initial capital letters indicate the names of objects, properties, events, and methods. If the name consists of more than one word, the initial capital words are concatenated.
event-driven Italic letters denote defined terms the first time they occur in text. Defined terms are part of the product Glossary. Click on the italicized word to see the definition.
IF StatusText() = "Test"
Monospace font indicates command lines you type, code examples, and references in text to the code examples.
USE customer
Lowercase letters indicate table and field names.
nTotal, cName
Lowercase letters prefix variable names and placeholders. The prefix indicates the data type of the variable: c for Character, n for Numeric, l for Logical, d for Date, t for DateTime, y for Currency, o for Object, and e for any expression.

In syntax, the following conventions are used:

DELETE VIEW ViewName In syntax, words in italics are placeholders for information you supply.
[STYLE cStyleName] In syntax, brackets enclose optional items.
SET BELL ON | OFF In syntax, a vertical bar separates two mutually exclusive choices.
[, WindowName2 ] In syntax, an ellipsis indicates that an item can be repeated in a list any number of times. A comma separates the list items.

Keyboard Shortcuts

See Also

Visual FoxPro supports keyboard shortcuts in these areas:

Menu commands
Window manipulation
Properties window
Default macros definitions
Class Browser

Menu commands

Shortcut Command Applies to
CTRL+A Select All (Edit Menu) Editing text
CTRL+C Copy (Edit Menu)
CTRL+D Do (Program Menu)
CTRL+E Delete Item (Menu Menu) Designing menus
CTRL+E Do <program> (Program Menu)

Run Form (Form Menu)


Form Designer

CTRL+F Find (Edit Menu)
CTRL+G Find Again (Edit Menu)
CTRL+H Change Partitions (Table Menu) Browse windows
CTRL+I Insert Item (Menu Menu) Designing menus
CTRL+J Project Info (Project Menu) Projects
CTRL+L Replace (Edit Menu)
CTRL+M Resume (Program Menu) Programs
CTRL+N New (File Menu)
CTRL+O Open (File Menu)
CTRL+P Print (File Menu)
CTRL+Q Run Query (Query Menu)Quit (File Menu) Queries
When the Query Designer is not active, CTRL+Q closes the active window or dialog box.
CTRL+R Redo (Edit Menu)
CTRL+S Save (File Menu)
CTRL+T Toggle Deletion Mark (Table Menu) Browse windows
CTRL+V Paste (Edit Menu)
CTRL+W Closes current text window or dialog box and saves changes.
CTRL+X Cut (Edit Menu)
CTRL+Y Append New Record (Table Menu) Browse windows
CTRL+Z Undo (Edit Menu)

Window manipulation

Shortcut Action
CTRL+F1 Cycles windows
CTRL+F2 Displays Command window
CTRL+F4 Closes active window
CTRL+F5 Restores maximized window
CTRL+F6 Cycles windows
CTRL+F7 Moves active window
CTRL+F8 Sizes active window
CTRL+F9 Minimizes active window
CTRL+F10 Maximizes active window
CTRL+ALT+SHIFT Hides all child windows while the keys are pressed down. Hiding windows makes it easy to see output displayed in the main application window.


F1 Displays Help Contents or context-sensitive Help on active items (for example, a highlighted keyword in the Command window or the current property in the Properties window).
SHIFT+F1 Enables user-prompted context-sensitive Help. The insertion pointer changes to a question mark so that you can click on an item (for example, a menu command or toolbar) to display context-sensitive Help.

Properties Window

CTRL+ALT+alpha Selects the next property in the properties list that begins with the alpha character. For example, pressing CTRL+ALT+B selects the next property that begins with B.
CTRL+PAGE DOWN Move to next object in drop-down Object list.
CTRL+PAGE UP Move to previous object in drop-down Object list.
CTRL+END Move to last object in drop-down Object list.
CTRL+HOME Move to first object in drop-down Object list.

Default Macros Definitions


Note The macro definitions apply to the Command window. You can change the macro definitions with the Macros command on the Tools menu.

Class Browser

Shortcut Action
F5 Refreshes the current view.
SHIFT+F10 Displays a shortcut menu.
Right-click+Open button
Right-click+Add button
Right-click+Component Gallery button
Displays a history of last 32 files loaded.
Right-click+View Class Code button Displays the class code in a webview form.
CTRL+Right-click+Class icon
(in upper left corner of the Class Browser)
Creates an instance of the class with the NEWOBJECT( ) function in the Command window.

Identical to dragging the Class icon onto the Command window.

SHIFT+Right-click+Class icon
(in upper left corner of the Class Browser)
For forms, runs the form.

For other controls and objects, creates an instance of the control or object. For controls, also adds the control to the Visual FoxPro desktop at 0,0.

Identical to dragging the Class icon onto the Visual FoxPro desktop.