Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RAND() not very random
Message
From
21/09/2006 14:45:22
 
 
To
21/09/2006 09:01:26
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01155607
Message ID:
01156142
Views:
32
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform