How to write it that i have the content and not the name in the FinalValueList?
Code snippet
Code: Select all
FieldNumber := 2
Loop, Parse, A_LoopReadLine , `;
{
Field%A_Index% = %A_LoopField%
}
FinalValueList .= "Field" FieldNumber "`n"
Daniel
Code: Select all
FieldNumber := 2
Loop, Parse, A_LoopReadLine , `;
{
Field%A_Index% = %A_LoopField%
}
FinalValueList .= "Field" FieldNumber "`n"
Code: Select all
Loop, Read, my.csv
finalValueList .= StrSplit(A_LoopReadLine, ";").2 "`n"
MsgBox % finalValueList
Code: Select all
FinalValueList .= "Field" FieldNumber "`n"
Code: Select all
FinalValueList .= Field%FieldNumber% "`n"
Code: Select all
Loop, Read, testcsv.csv
{
Loop, Parse, A_LoopReadLine , `;
Field%A_Index% = %A_LoopField%
FinalValueList .= Field%FieldNumber% "`n"
}
msgbox % FinalValueList
Code: Select all
fileread, var, testcsv.csv
arr := []
for x,y in strsplit(var,"`n")
arr.push([strsplit(y,",").2, strsplit(y,",").3]) ; saves the 2dn and 3rd column in a subarray
msgbox % arr.3.2 ; 3rd row & 2nd of the 2 columns saved (i.e. column 3)