Monday, February 8, 2010

Indexof / Cars / Girls Jpg Indexof In Vb.net, What Is Lowest Possible Number That Can Be Returned?

Indexof in vb.net, what is lowest possible number that can be returned? - indexof / cars / girls jpg

Let's say I have an indexOf ( "p") in the channel "could", the return value is either 1 or 0 That's all I know.

2 comments:

Samuel A said...

Is 0-based, so that the 0 :)

Example:

Cat str As String = ""

If (str.indexOf "w") \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; 0 Then
"This would be the case, since W is not a cat
End If

If str.indexOf ( "a")> = 0 Then
"That would be true, because a cat
End If
indexOf method returns -1 for "not found", and 0, depending on the location of the keyword in the search term.

String: cat
Index: 0 1 2

Pfo said...

. Net-based matrices are always 0, 0 is always the lowest. The value of your previous expression must be 0.

* For this you should do String.indexOf ( "p" c). C 'ie small "that it is a literal character, not a string literal.

Post a Comment