Combination of string methods

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
1 post • Page 1 of 1
buec
Posts:28
Joined: Tue Dec 07, 2010 3:09 pm

Combination of string methods

Post by buec »

If string methods are combined, only the first one will be executed.

Code: Select all

main()
{
  string s = "ABC";
  DebugN( s.toLower( ).endsWith( "C" ) ); // returns "abc" instead of false
  DebugN( s.toLower( ).endsWith( "c" ) ); // returns "abc" instead of true
}
Unfortunately, this invalid combination does not give a warning in LogViewer.
Will a combination of string methods be possible in the future?

WinCC OA 3.16 P015 Windows

Best regards
Christoph

1 post • Page 1 of 1