Combination of string methods

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
1 post • Page 1 of 1
buec
Posts: 20
Joined: Tue Dec 07, 2010 2:09 pm

Combination of string methods

Post by buec » Wed Nov 20, 2019 11:27 am

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

Post Reply
1 post • Page 1 of 1