opendir() - Is there a filename cap ?

Bob Stockler bob at trebor.iglou.com
Sat Nov 12 10:22:10 PST 2005


John Esak wrote (on Sat, Nov 12, 2005 at 12:48:30PM -0500):

| > 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? :-)

The 999 limits only those using evaluation distribution versions.

Those with a licensed version have access to the code and can
dimension that array to anything they want <= 37767.

Bob

PS - And this also has nothing to do with anything... filePro's
     menu creation/editing program doesn't list menus whose
     names include a dot (.) - to edit them one must act like
     they're creating a new menu by that name.

-- 
Bob Stockler  +-+  bob at trebor.iglou.com  +-+  http://members.iglou.com/trebor
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).


More information about the Filepro-list mailing list