Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00917707
Message ID:
00917883
Views:
13
>>>
>>>There's no need to use macro substitution and expression to build file name could be simlified. You can combine the first two lines if you wish.
lcDate = DTOS(DATE())
>>>lcFileName = "ex" + SUBSTR(lcDate,5,4) + LEFT(lcDate,4)
>>>copy to (lcFileName)
>>
>>Sergey,
>>
>>Yeah, but it depends on the MM/DD/YYYY date format, doesn't it? If so, I'd think that using the DAY(), MONTH() and YEAR() functions might be better.
>
>George,
>
>DTOS() or DTOC(,1) returns string YYYYMMDD which is independed of any date settings.

Sorry, Sergey. I mis-read your response.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform