Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Most recent file list
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00186842
Message ID:
00187617
Vues:
26
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform