none
Get Everything To Left Of Variable RRS feed

  • Question

  • I know you can use the below to get everything to the left of the ,

    string name =  filename.Substring(0, filename.IndexOf(','));

    but if I use 

    string name =  filename.Substring(0, filename.IndexOf(ses));

    I get a compile error of:

    IndexOf is missing a stringn comparison argument.

    Sunday, October 14, 2018 6:25 PM

Answers

All replies