Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RAND() not very random
Message
De
21/09/2006 14:45:22
 
 
À
21/09/2006 09:01:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01155607
Message ID:
01156142
Vues:
33
a bit verbose today ? and living dangerously as well ??
*lcfilename = (ALLTRIM(STR(yEAR(DATEtime()))) ;
	+PADL(ALLTRIM(STR(month(DATEtim()))),2,'0') ;
	+PADL(ALLTRIM(STR(day(DATEtime()))),2,'0') ;
	+"@"+CHRTRAN(substr(TTOC(DATETIME()),AT(CHR(32),chrtran(TTOC(DATETIME()),':',''))+1),':','') ;
	+sys(2015))+sys(3)+'.TXT'

local ltNow
ltNow = datetime() 
lcFileName = dtos(m.ltNow) + "@" ;
               + left(chrtran(time(m.ltNow),":",""),6 );
               + sys(2015) + sys(3) + '.TXT'
? lcFilename
consider the clock also ticking wile the expression is executing and shudder at the dangers of midnight rollover during that time.

Sorry couldn't resist - could it be friday ?

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform