Does anyone know how to display the contents of a directory inside of a menu?
I only want to show a max of 20 items if possable.
a little code would help.
TIA
Printable View
Does anyone know how to display the contents of a directory inside of a menu?
I only want to show a max of 20 items if possable.
a little code would help.
TIA
You need to create 20 menu items and set their visibility to hidden.
Then, use the File System Object's method GetFolder and assign to a Folder object.
Then, for each the Files in Folder and when you reach 20, bail out.
On each iteration, increment your index and update the menu item that corresponds to the index.
Is there an easier way to do this?
I don't need to limit the #, I really just want to list dir contents so if the contents change the list changes too.
Is there a way to do that?