Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regional settings for csv
Message
De
08/02/2022 14:40:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01683472
Message ID:
01683482
Vues:
36
>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?

Christian,

You might be interested in the CSVProcessor class at VFPX (https://github.com/atlopes/csv). The class gives you a great deal of control over the file format.
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform