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:
00187617
Views:
27
>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


Esteban,
thanks for your reply, how do you read the ini file (fopen ? ), I've never used ini files so please bear with me

Regards
Pete Kane
Regards,
Peter J. Kane



Pete
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform