opendir() - Is there a filename cap ?
John Esak
john at valar.com
Sat Nov 12 09:48:30 PST 2005
> I've never seen it documented that arrays are limited to 999
> elements. In MENU EDIT II I dimensioned the array that holds
> all menu names at 999, but only because I thought that was a
> reasonable maximum number of menus to be expected in any one
> PFMENU directory.
This has nothing to do with anything... and it is known that the number of
elements in an array would/should be the 32k allowable for a positive
integer... but just as a funny aside. You picked 999 as a reasonable number
of menus that would probably never be exceeded. There was way back when a
problem with some client we had where menus weren't working properly... or
at least they were being accessed very, very slowly or something strange I
can't quite remember. Turned out they had 770 menus in the menu directory!
Somthing like a 23 meg directory!!! 770 isn't too far away from 999,
perhaps you should keep it at 9999. Of course, 5 years from now, someone
will be wanting to give 1 menu to each of the peopple in their town, and
they live in Atlanta! :-) Maybe you should make it a 32k series of 32k
arrays all linked together. I mean why limit Menu-Edit II? :-)
John
More information about the Filepro-list
mailing list