What happens if you add the extension to the filename, ie lcFileName =
'Chosen_' + strtran(dtoc( date()), "/", "_") + '.CSV'?

You might want to look at DTOS() as well.


John Weller
01380 723235
07976 393631  

> [VFP9]
> 
> Like I recently mentioned, I'm rusty at doing VFP...
> 
> I am building a file name to save some report output and am 
> getting different formats when I run it via command prompt 
> (prg) vs the standalone EXE. I'm sure it's some setting in 
> the IDE of VFP but I'll be darned if I can find it.
> 
> Here is the code:
> 
>     set date to ansi
> 
>     * - file name in YYYYMMDD like format
>     lcFileName = 'Chosen_' + strtran(dtoc( date()), "/", "_")
> 
>     set date to american
> 
>     copy to (lcFileName) for chosen.date = date() type csv
>  
> 
> In VFP, the filename comes out as "Chosen_2009_04_23.CSV".
> 
> When I run it as a standlone EXE, I get "Chosen_2009.04.23"
> 
> I'm stumped....
> 


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/37ee98f9d09b4e2a8ed232adb14e8...@wessex1
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to