When I read only Date and Time (first string) it reads alright, but when i have second string separated with vbTab then it reads second string alright, but in Date and Time String writes zero(not read good). Probably problem with locations. To short my problem: i have 14 strings separated with vbTab in one row and how can i read that in 14 different variables ?
strLine = objFile.ReadLine VarLoc1 = InStr(strLine) Set Var1 = HMIRuntime.Tags("DATE") Var1.Value = CDate(Right(strLine, Len(strLine) - VarLoc1)) Var1.Write Wscript.Echo strLine VarLoc2 = InStr(strLine, vbTab) Set Var2 = HMIRuntime.Tags("VALUE") Var2.Value = CDbl(Right(strLine, Len(strLine) - VarLoc2)) Var2.Write
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)