addToMRU( )
Use the addToMRU( ) method to add a file to the “most recently used” files list located on the “Files | Recent Files” and “Files | Recent Projects” menus.
Syntax
_app.addToMRU( <filename>, <launchMode> )
<filename>
File name and optional path or alias
In order to be added to the Recent Files list:
If no alias is specified, a file must exist and must not have an extension of .TMP
If an alias IS specified, it is added to the list without first checking if it exists
In order to be added to the Recent Projects list:
A file must have an extension of .PRJ and <launchMode> must be 4 - "Run"
<launchMode>
A number from 0 to 12 specifying how the file should be launched, or opened, when a user selects it from the "Recent Files" list.
Number |
Launch Mode Description |
|
0 |
Use the default method based on files extension |
|
1 |
Launch as if user selected, "File | New", from menu |
|
2 |
reserved |
|
3 |
Open file in appropriate designer |
|
4 |
"Run" the file |
|
|
|
for Projects: Open in Project Explorer |
5 |
Alternate "Run" |
|
|
for Programs: DEBUG |
|
6 |
Open a table via USE |
|
7 |
reserved |
|
8 |
Close |
|
9 |
Open in Source Editor |
|
10 |
Compile |
|
11 |
Debug |
|
12 |
Build |
|
Property of
_app object
Description
The addToMRU( ) method can be called from a dBL program that runs in the dBASE Plus IDE. If called in a dBASE Plus runtime application, it will RETURN without doing anything.