Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shorter than sys(2015)
Message
De
08/02/2015 17:06:48
 
 
À
08/02/2015 15:42:33
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01614860
Message ID:
01615003
Vues:
61
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform