Topic
Import of CSV-File
Page d'accueil ' Communauté ' FPScript ' Importation d'un fichier CSV
- Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par Florian Bleymann, le il y a 14 années et 6 mois.
-
AuteurMessages
-
29.10.2010 à 19:15 #33157Florian BleymannParticipant
Hello,
I have a problem to import a csv and copy the data to a datamatrix. Following code works:
csv1 = ChooseFile(” “, “CSV_1″,”C:UserslaborDocumentsFlexproI-U-Messung – CSV_Merge”, _
“Datendateien (*.csv; *.xls; *.xlsx)|*.csv;|Textdateien (*.txt; *.asc)|*.txt; *.asc*.xls; *.xlsx|Alle Dateien (*.*)|*.*||”)ReadTextFile(csv1, 1, 0, 0, 6, True,TYPE_FLOATINGPOINT64, True, “;”,False)
The csv is read in but the data arranged in 7 columns is only visible in the window “Überwachung”. How do I get the csv data in a correspondent datamatrix for further data manipulation?
Thanks.
29.10.2010 à 19:15 #33159Florian BleymannParticipantHello,
I have a problem to import a csv and copy the data to a datamatrix. Following code works:
csv1 = ChooseFile(” “, “CSV_1″,”C:UserslaborDocumentsFlexproI-U-Messung – CSV_Merge”, _
“Datendateien (*.csv; *.xls; *.xlsx)|*.csv;|Textdateien (*.txt; *.asc)|*.txt; *.asc*.xls; *.xlsx|Alle Dateien (*.*)|*.*||”)ReadTextFile(csv1, 1, 0, 0, 6, True,TYPE_FLOATINGPOINT64, True, “;”,False)
The csv is read in but the data arranged in 7 columns is only visible in the window “Überwachung”. How do I get the csv data in a correspondent datamatrix for further data manipulation?
Thanks.
29.10.2010 à 19:21 #33158Bernhard KantzParticipantThe FPScript formula returns the imported values. Either you can manipulate the data in the same FPScript formula or you can create a second FPScript formula and access the first formula using the name of the first formula.
-
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.