Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regional settings for csv
Message
From
08/02/2022 11:52:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/02/2022 11:25:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01683472
Message ID:
01683473
Views:
40
>Hi, I have an issue with creating CSV files since a recent windows update. With certain settings at a client, COPY TO TYPE CSV produces an incorrect file format. Therefore I like to prepare the file in code, however I would need to detect the setting in regional settings, which regional number format is selected. I found the GetLocaleInfoEx API but have not yet found how exactly to use it for the number format. So I am hoping someone has done that already?

Quick and dirty:
set date short
x=dtoc({^1999-12-31})

Then analyze x and see what got where.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform