Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Most recent file list
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00186842
Message ID:
00187596
Views:
16
Hi,
I make a MRU routine using a .INI file with this section:

[MRU items]
file1=
file2=
file3=
file4=
MRUlist=1234

Then, when my app starts, I take MRUlist item and parse it getting the files items in the correct order. When the user save a file, I take the last item number in MRUlist (in this sample: 4), and write the INI file with the file name in the file# item (i.e file4=c:\path\filename). Also I change the MRUlist order to 4123.

In this case, the INI file have this:

[MRU items]
file1=
file2=
file3=
file4=c:\path\filename
MRUlist=4123

I make a loop from 1 to 4 to read the items and add the most recently used files to the File Menu (I do it if !Empty(file#))

Good luck!!
Esteban
Lic. Esteban Bruno
Gerente de Sistemas
TASSO S.R.L.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform