Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sys(3) question
Message
 
 
À
14/08/2006 10:50:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01145313
Message ID:
01145318
Vues:
17
>I think I read somewhere that, depending on the exact date, it can return a name that starts with a digit, making it unsuitable for some purposes.

The SYS(3) returns the number of miliseconds since midnight as a string.
? INT(Seconds()*1000), Sys(3)
>You might consider sys(2015) as an alternative. That one returns 10 characters, but I am not so sure about whether it may start with digits, or not. I think it is safer in the sense that sys(3) might return the same name twice, if it is called in rapid succession (twice in the same milisecond or so).

The value returned by sys(2015) always starts with "_" (underscore). The rest could be any alpha-numeric character depending on the current date. See Convert SYS(2015) value back File #9704 for details.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform