Hi,
I am new in the forum and I don´t speak German, so I will write in english. I am developing a RecipeManager, and one funtionality is import values since file .csv to array of strings. I use following code for read values:
VAR
hFile : DWORD;
dwRead : DWORD;
szFilePath : STRING := 'C:\Temp\CODESYS.csv';
szSeperator : STRING(1) := ';';
szCurrent : STRING(255);
szWord : STRING;
Result : SysTypes.RTS_IEC_RESULT;
END_VAR
hFile := SysFile.SysFileOpen(szFile:=szFilePath, am:=SysFile.AM_READ, pResult:=ADR(Result));
dwRead := SysFile.SysFileRead(hFile:=hFile, pbyBuffer:=ADR(szCurrent), ulSize:=SIZEOF(szCurrent), pResult:=ADR(Result));
Now, I want to use CSV_PARSER_BUF, so I want to obtain values between Separator (',') and copy everyone in a Strings of my recipe, my problem is that This FB not run correctly. I have attached a picture with errors that i have when i build.
I hope help
.....and many thanks for support in advance
Regards,
Adrián
[gelöscht durch Administrator]