You can access the Visual FoxPro Command Window from within VPM Enterprise. When you start VPM Enterprise, the Command Window is displayed. If you close the Command Window, you can reopen it from the VPM Enterprise Window menu.
While you can use the Command Window from within VPM Enterprise much like you use it in Visual FoxPro, there are a few idiosyncrasies and precautions that you must observe as described in the following sections.
Displaying Results
When you execute a command in the Command Window that displays results, Visual FoxPro displays the results in the currently active window. Within Visual FoxPro itself, this usually means that results are displayed within the main Visual FoxPro window. However, in VPM Enterprise the Object Builder is normally active and when it is active, command results are displayed in the Object Builder window. Try it for yourself. Enter “dir” (without the quotes) in the Command Window with the Object Builder open. See what happens to the Object Builder window.
Sometimes it might be OK to display brief results in the Object Builder window, but most often it’s not. Accordingly, we suggest that you close the Object Builder and any other open windows when you use the Command Window with commands that display results.
VPM Enterprise Environment – Important!
Remember that when you are using the Command Window within VPM Enterprise, a Visual FoxPro application is running. Accordingly, do not enter commands in the Command Window that affect the operation of VPM Enterprise itself. Do not enter commands in the Command Window within VPM Enterprise that would change the VPM Enterprise environment. If you do, you will most certainly cause VPM Enterprise to perform incorrectly or, perhaps, even crash.
Examples of commands that you must avoid include:
|
Commands to Avoid |
Comments |
|
SET PATH TO |
VPME requires a specific path that it sets at startup and when projects are opened. |
|
SET DELETED OFF |
Deleted records would be included when records are accessed. |
|
DO menuname.mpr |
Don’t change the menu. |
|
SET EXACT ON |
Comparisons may be incorrect. |
|
SET EXCLUSIVE ON |
May lock out other users (if any). |
|
SET MULTILOCKS OFF |
Would prevent multiple-record locking. |
|
CLEAR |
Don’t issue CLEAR commands that clear classes, memory, etc. |
|
CLOSE |
Don’t issue CLOSE commands that close databases, tables or indexes. |
|
ON ERROR |
Would disable VPME error handler. |
|
RELEASE |
|
VPM Enterprise Form Toolbar Controls