Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shorter than sys(2015)
Message
From
08/02/2015 17:06:48
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
 
To
08/02/2015 15:42:33
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01614860
Message ID:
01615003
Views:
63
>>>But is activewindow() unique across users?? I don't think so.
>
>Hmm. If ActiveWindow is a handle then I'd hope it's unique on a machine... should not matter across machines as long as the temp file is local.
>
>>>And of course, a key is only unique for a limited number of cases. E.g. a numeric key of, let's say, 5 positions is not enough if there are potentially more that 99.999 cases.
>
>Yep, if they need more than 99,999 files they'd want an extra character... or to use alphanumeric in which case you can get hundreds of billions of filenames in 5 bytes. ;-)

If we're talking about file names, some characters are not valid, and others are effectively duplicates e.g. "A" and "a" are the same because Windows file names aren't case sensitive.

A better estimate is 10 digits 0-9 + 26 alphabetic chars, or 36 total chars.

36^5 is about 60 million.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform