[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
+---------------------------------+
| RELEASE |
+---------------------------------+
RELEASE <memvar list>
RELEASE ALL
[LIKE <skel> | EXCEPT <skel>]
RELEASE MENUS [<menu list>
[EXTENDED]]
RELEASE PAD <pad name>
OF <menu name>
| RELEASE PAD ALL OF <menu name>
RELEASE POPUPS [<popup list>
[EXTENDED]]
RELEASE BAR <expN> OF <popup name>
| RELEASE BAR ALL OF
<popup name>
RELEASE WINDOWS [<window list>]
-----------------------------------
Releases memory variables, menus, menu pads, popups, popup options and
windows.
-----------------------------------
The RELEASE command removes memory variables and arrays, menus, popups,
user-defined windows and system windows from memory. This makes the
previously allocated memory available for use again. System memory
variables can never be released from memory.
You may also remove options from menu popups and pads from menu bars.
Options and pads from the FoxPro System menu bar and menu popups may be
selectively released. There are several formats for the RELEASE
command:
RELEASE <memvar list>
RELEASE <memvar list> purges from memory only those memory variables
and arrays contained in the <memvar list>.
RELEASE ALL [LIKE <skel> | EXCEPT <skel>]
RELEASE ALL may be used to RELEASE ALL memory variables and arrays,
RELEASE ALL memory variables and arrays that are LIKE the specified
skeleton <skel>, or RELEASE ALL memory variables and arrays EXCEPT those
that match the specified <skel>. The <skel> may include the wild card
characters * and ?.
. RELEASE ALL, RELEASE ALL LIKE or RELEASE ALL EXCEPT do not release
public variables when used within a program. To release public
variables, use RELEASE <memvar list>.
RELEASE MENUS [<menu list> [EXTENDED]]
RELEASE MENUS releases selected user-defined menu bars from memory and
from the screen or a window. An active menu must first be deactivated
with DEACTIVATE MENU before it may be released from memory. The menus
to be removed from memory should be specified in the <menu list>. If
RELEASE MENUS is issued without a <menu list>, all user-defined menus
are removed from memory and the screen or a window.
A menu bar and all its subordinate pads, popups, bars and ON routines
may be released by including EXTENDED in the RELEASE MENUS command.
RELEASE PAD <pad name> OF <menu name>
| RELEASE PAD ALL OF <menu name>
RELEASE PAD removes pads from menu bars. You may selectively remove a
pad from a user-defined menu bar or the System menu bar (Edit, File,
Database ... ) by including the <pad name>. For example, the command
RELEASE PAD _MEDIT OF _MSYSMENU removes the Edit pad and its popup from
the System menu bar.
If you include ALL, every pad in a user-defined menu bar is removed.
ALL may not be used to remove pads from the System menu bar.
RELEASE POPUPS [<popup list> [EXTENDED]]
RELEASE POPUPS releases selected user-defined popups from memory and
from the screen or a window. An active popup must first be deactivated
with DEACTIVATE POPUP before it may be released from memory.
Include a <popup list> with the popups to be released. If RELEASE
POPUPS is issued without a <popup list>, all user-defined popups are
removed from memory and the screen or a window.
System menu popups that appear under the System menu bar may also be
released. To release a System menu popup, include the name of the
System menu popup (_MSYSTEM, _MFILE, _MEDIT, _MDATA, _MRECORD, _MPROG or
_MWINDOW). To restore the default System menu bar and System menu
popups, use SET SYSMENU TO DEFAULT.
A popup and all its subordinate popups, bars and ON routines may be
released by including the keyword EXTENDED in RELEASE POPUP.
RELEASE BAR <expN> OF <popup name>
RELEASE BAR ALL OF <popup name>
RELEASE BAR removes options from popups. You may selectively remove an
option from a user-defined popup including the option number <expN>. To
remove an option from a System menu (Edit, File, Database ... ), include
the System option name in <expN>.
If you include the keyword ALL, every option in a user-defined popup is
removed. ALL may not be used to remove options from a System popup.
RELEASE WINDOWS [<window list>]
RELEASE WINDOWS removes windows included in the <window list> from
memory and the screen or a window. The <window list> may include both
user-defined windows and FoxPro system windows.
FoxPro desk accessories and system windows can be removed from the
screen or a parent window with RELEASE WINDOW. The following is a list
of desk accessories and system windows that can be removed from the
screen or a parent window with RELEASE WINDOW:
Desk Accessories
----------------
Filer
Calculator
CALENDAR/Diary
SPECIAL Characters
ASCII Chart
Puzzle
System Windows
--------------
Command
Debug
Trace
View
When releasing desk accessories with two parts to their name
(CALENDAR/Diary, SPECIAL Characters, ASCII Chart), use just the first
part of the name (shown here in upper case).
For example, to remove the ASCII Chart from the screen or a window use
RELEASE WINDOW ASCII. Use ACTIVATE WINDOW to display a desk accessory
or system window on the screen or in a window.
If a <window list> isn't included, the current output window is
released.
+---------------------------------+
| Program Example |
+---------------------------------+
*** Remove pads from the System menu bar ***
RELEASE PAD _MSM_SYSTM OF _MSYSMENU
RELEASE PAD _MSM_WINDO OF _MSYSMENU
*** Remove options from System menus ***
RELEASE BAR _MST_PUZZL OF _MSYSTEM
RELEASE BAR _MDA_SUM OF _MDATA
-----------------------------------
See Also: CLEAR, DEACTIVATE POPUP, DEACTIVATE MENU, DEACTIVATE POPUP,
DEACTIVATE WINDOW, DEFINE MENU, DEFINE PAD, DEFINE POPUP, DEFINE BAR,
DEFINE WINDOW, MENU - System Menu Names, PUBLIC
-----------------------------------
See Also:
CLEAR
DEACTIVATE POPUP
DEACTIVATE MENU
DEACTIVATE POPUP
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson