Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange behaviour of MenuFromFileFolder
#1
I created the following macro:

Code:
Copy      Help
str s=" "
s.MenuFromFileFolder("C:\A")
DynamicToolbar s "MyToolbar"

The toolbar appears correctly, it lists the file contained inside it, but it lists always all files minus 1.
If I put inside the folder a file xxx.txt, no  files appear in the toolbar, even after closing and restarting the macro. If 2 txt files are in the folder, 1 txt file appears in the toolbar. If 4 txt files are in the folder, 3 txt files appear in the toolbar.
#2
s must be empty or contain toolbar options and newline, like in the example.


Forum Jump:


Users browsing this thread: 1 Guest(s)