05-02-2007 01:08 PM
05-02-2007 01:28 PM
05-02-2007 01:37 PM
I can find the position in the string I want to to do the replacement operatation? how do i do the insertion at that point.
Here is a portion of my code
StartofSearchString = FindPattern (buffer, 0, bytesread, "CoilBaudRate", 1, 1);
StopofSearchString = FindPattern (buffer, StartofSearchString , 25, "\n", 1, 1);
value= StopofSearchString-(StartofSearchString + (StringLength("CoilBaudRate")+ 1));
i = sprintf (temp,"%i", CoilBaudRate);
FillBytes (buffer, (StartofSearchString+(StringLength("CoilBaudRate"))+1), i,CoilBaudRate );
is there a function like the fillbyte that do the insertion
thanks,
jsugrim
05-02-2007 01:47 PM