"Blah hello smart"
They get divided up into an array like so:
[0] = "Blah"
[1] = "hello"
[2] = "smart"
Now if the string is only "Blah" I only get one array index
[0] = "Blah"
But I have to check if there is an value with index [1] in the array.
How can I do that?
Sience doing
Expand|Select|Wrap|Line Numbers
- if (array[1] == "")
- {
- }
Expand|Select|Wrap|Line Numbers
- if (array[1] == null)
- {
- }
I found this page: http://msdn2.microsoft.com/en-us/library/aa628583.aspx
It's exactly what I need but there is no info about it. Not even what language it's for.
In C# array.exists means something whole different.
Can someone help me?