01.Blogs :
CCTING  

PROBLEMATIC SPLIT - WHIDBEY

string AString = "Ting, Choo";
string
[] tokens = AString.Split(new char[] { ',' });
MessegeBox.Show(takens[0]);  //==>NO PROBLEM
MessegeBox.Show(takens[1]); // ==>ERROR : out of index..

This is very ignoring, to overcome this error for Whidbey Beta 2,
instead of using tokens[1], i did this
   string token2 = AString.Replace(tokens[0]);

As i explore more in Whidbey 2, i have found countless of errors / mistakes which draw me to "uneffective" solutions..
What say u?

:(( bad bad bad.. writing a article for conference paper not an easy task for me, how about u.. give me many hands??? or even laser printers :D hahahaha..

posted on Tuesday, August 09, 2005 12:22 PM by CCTING

# @ Tuesday, August 09, 2005 3:47 PM

The VB.Net equivalent works fine... Dim AString as String = "Ting, Choo" Dim tokens as String() = AString.Split(",") MessegeBox.Show(tokens(0)) MessegeBox.Show(tokens(1)) The only thing is, you should probably run a trim on tokens(1) because it contains a space as the first character.

bastawhiz

# @ Wednesday, August 10, 2005 7:02 AM

Thanks.. but it still give me problem... er... anyway i am using Whidbey beta 2.. what version of VB.net are u using?

CCTING


 
03.UPDATE CALENDAR :
<August 2005>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910

05.MY LINKS :

07.Subscriptions :

Subscriptions


© Copyright 2005 Microsoft Corporation. All Rights Reserved.
Terms of Use | Privacy Statement | Code of Conduct | Hosted by MaximumASP for Microsoft
WHO-BAR