I am reading a file on my computer that contains the following information:
cellcount=011 (INT)
currentdensity=1.112 (REAL)
REAL2=2.1145 (REAL)
INT1=41823 (INT)
REAL3=4.2023 (REAL)
INT=11 (INT)
Currently I am storing the ReadBuffer in a string(1000) because I thought that was the easiest way to manipulate the content. I want to be able to extract the numbers as you see and store them in variables. I want it to be dynamic so folks can enter any number (not reals in to ints, but otherwise).
so far I have looked at the string functions of twincat 3 and using MID() and FIND() I can make something work, but then I need to know the length of the numbers. Like this:
test.CellCount := STRING_TO_INT(MID(sTest,number_of_chars,FIND(sTest,'cellcount:')+10));
Any idea how to make this dynamic?