Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

String functions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    String functions

    Hello,

    I need to check if a string is included inside other string.

    Which is the string function that does it?

    Thanks and regards.

    #2
    Originally posted by soyjesus View Post
    Hello,

    I need to check if a string is included inside other string.

    Which is the string function that does it?

    Thanks and regards.
    String.Contains().

    ref: https://msdn.microsoft.com/en-us/lib...(v=vs.90).aspx

    Comment


      #3
      Hello soyjesus,

      Thank you for writing in. If you just needed to know whether or not the string was contained within the other string you could use the String.Contains() method. For example:
      Code:
      string x = "I contain the word";
      string y = "word";
      Print(x.Contains(y)); //prints true
      If you have any other questions, please let me know.
      Michael M.NinjaTrader Quality Assurance

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      571 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      548 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      549 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X