Wikis > C# Wiki > Split (String)

string[] _Split = _DataRowView[2].ToString().Split((char)44);
int _SplitCount = 1;

foreach (string s in _Split)
{
   if (s != "")
   {
      if (_SplitCount == 1)
      { _CursorX = System.Convert.ToInt32(s); }
      if (_SplitCount == 2)
      { _CursorY = System.Convert.ToInt32(s); }
   }
   _SplitCount += 1;
}

MSDN Artikel

Category: Tags: