Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RAND() not very random
Message
From
21/09/2006 06:45:41
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01155607
Message ID:
01155871
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
>>>>>How so, amd why not suggest an alternative? It's just a cheap & cheerful way of generating a (fairly) unigue file name.
>>>>
>>>>
>>>>lcDateStr = ttoc(datetime(), 1)
>>>>
>>>
>>>Thanks Gregory. Then it needs converting to a format readable to a British eye/brain, with "_" separators, etc. It's not that important :-)
>>>
>>>Terry
>>
>>Terry,
>>
>>That's easy
>>
>>?transform(ttoc(datetime(),1), '@R ####_##_##_##:##:##')
>>?transform(ttoc(datetime(),1), '@R ####-##-##_##:##:##')
>>
>
>Aye, but it still goes to reverse order (indexing) date - I'd want it in Brit format, like "21_09_2006_1136"
>
>See? It's still a faff :-)
?strtran(ttoc(datetime()), '/', '_')
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform