string[] field = moje.ToString().Split(("/").ToCharArray(), StringSplitOptions);

i am using this code, but c# always replies with

The name 'StringSplitOptions' does not exist in the class or namespace, do i need some upgrade of visual studio, or what? or what prototype? need help, thnx to all

12 Years
Discussion Span
Last Post by f1 fan

that is because you copied from something before understanding what you were doing :D StringSplitOptions is optional for a start and is new in .net2 so unless you are using that leave it out. It is an enumerator so you cant just say StringSplitOptions you have to choose one of the enumerations you want


sorry... got me on a bad day yesterday
i would look up the string split on msdn and also the stringsplitoptions (if you have .net2 - vs2005) and enumerators.
but to get you going just leave out the stringsplitoptions for now so your code reads string[] field = moje.ToString().Split(("/").ToCharArray());

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.