25 May 2011

To get string at position

We can use this.. hopefully this help

example we have a variable 'temp' with content like 'XX-YY-ZZ'

string[] variable = temp.Split('-');

we can use this to retrieve each element:
temp[index]

temp[0] = XX
temp[1] = YY
temp[2] = ZZ

No comments:

Post a Comment

Twiit.. Twiit... Gulp