using data on a csv file

Other discussions about CSPro
Post Reply
Jason37
Posts: 5
Joined: May 30th, 2023, 6:21 pm

using data on a csv file

Post by Jason37 »

salut je suis nouveau sur cspro et j'ai eu un code qui permet la saisie des données sur un document csv vers mon masque de saisie mais j'arrive pas le modeler pour qu'il soit compatible avec mon autre fichier csv
Attachments
Level 6.rar
(65.59 KiB) Downloaded 954 times
Level 5.rar
(34.03 KiB) Downloaded 952 times
justinlakier
Posts: 152
Joined: November 21st, 2022, 4:41 pm

Re: using data on a csv file

Post by justinlakier »

Under "Tools", excel2cspro can help reformat your .csvs into more usable cspro lookup files using a dictionary based on how you want your sample to look. Your input/output data should be stored in .csdb files as well. If you do need to use text files, they should have the .dat extension. Using CSPro formats rather than reading and writing directly to a .csv every time should save a lot of complexity and allow you to format your data how you like, then convert data back to a .csv format later.
You can improve your code by using "string" instead of "alpha(50)" for csvFileArray, and clear it with array.clear() instead of looping, but you likely won't need the array if you can simply load to and from a csdb file.

I hope that helps,
Justin
Jason37
Posts: 5
Joined: May 30th, 2023, 6:21 pm

Re: using data on a csv file

Post by Jason37 »

This should make it easier and I did eventually find the solution so thanks for the help
Post Reply