Hello everyone,
I'm using Stu.StrTrimEndA. But the non-blank character is deleted if the number of it is one. Do you have any idea?
My code is following:
VAR sBufferOneChar: STRING := 'A '; sBufferTwoChar: STRING := 'AA '; END_VAR
//NG (sBufferOneChar: 'A ' --> '') Stu.StrTrimEndA(pString:= ADR(sBufferOneChar)); //OK (sBufferTwoChar: 'AA ' --> 'AA') Stu.StrTrimEndA(pString:= ADR(sBufferTwoChar));
Log in to post a comment.
Hello everyone,
I'm using Stu.StrTrimEndA. But the non-blank character is deleted if the number of it is one.
Do you have any idea?
My code is following:
VAR
sBufferOneChar: STRING := 'A ';
sBufferTwoChar: STRING := 'AA ';
END_VAR
//NG (sBufferOneChar: 'A ' --> '')
Stu.StrTrimEndA(pString:= ADR(sBufferOneChar));
//OK (sBufferTwoChar: 'AA ' --> 'AA')
Stu.StrTrimEndA(pString:= ADR(sBufferTwoChar));