"P.o.l" <PL**********************@tele2.it> wrote in message news:uc**************@TK2MSFTNGP09.phx.gbl...
I remember registry writing:
a = program1.exe
b = program2.exe
.................
z = program26,exe
MRUList = ab...z
Then at most 26 keys ?!?!
If you choose to do it that way then yes, 26 keys.
But if you need to maintain a bigger list of MRUs
(Most Recently Used), then it's no longer an MRU
you need but a history--perhaps even a complete
history. If that's what you're after then you'll have
to roll your own implementation for it.
One way would be to simply add MRUs sequentially
to a list and read them back sequentially (enumerate),
with the first entry being the least-used and the last
entry being the most recently used. When a file is re-
used, it is simply deleted and re-written to the list.
There's then no need to maintain a separate MRUList
since the order will be dictated by the order the entries
are written. Remember that REGEDIT sorts entries
alphabetically by name while enumeration sorts the
entries in the exact order they were written (sequentially,
or chronologically if you prefer).