IonicWind Software

IWBasic => The Roundtable => Topic started by: Brian on February 06, 2018, 06:18:27 AM

Title: Most Recently Used File code
Post by: Brian on February 06, 2018, 06:18:27 AM
Hello,

I was just messing with some old IBasic code from Alyce Watson concerning Most Recently Used File code (MRUF). The example here saves the path and filename of the last file opened, up to a maximum of six files. Filenames are written to a file called MRUF.ini

Just use the File > Open file menu to select a few files, and see them being added to the File menu. The files are not actually opened in this program, it's just dummy code to show how it's done

Might be useful for someone

Brian

Edit: Tidy up of code

Title: Re: Most Recently Used File code
Post by: Andy on February 06, 2018, 06:32:39 AM
Like this Brian,

I could see that as being useful in a menu (if you see where I'm coming from).

Good find.

Andy.
Title: Re: Most Recently Used File code
Post by: LarryMc on February 06, 2018, 09:34:57 PM
I used that in the Recent files and recent Projects menu options in the IWBasi IDE and IWB+ IDE