locked
Extract a string RRS feed

  • Question

  • User-1499457942 posted

    Hi

      I have a string like LDH-XY . I want to extract characters before - means LDH

    Thanks

    Friday, June 15, 2018 6:19 AM

Answers

  • User-1499457942 posted

    Hi

      Resolved . 

    myString = myString.Substring(0, myString.IndexOf('_'));

    Thanks

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 15, 2018 6:40 AM