Link to home
Start Free TrialLog in
Avatar of andieje
andieje

asked on

vb.net indexOf method

Hi

Please can you tell me what this means
     If (strUrl.IndexOf("?"c) >= 0) Then

what is the purpose of the 'c'

thanks
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
it means that the overload method of IndexOf(char) is used. The method returns the index of the symbol (char) "?" inside the variable strUrl. If the method returns a value higher then or equal to zero, the If-statement is true. If true, it means that the character/symbol "?" is found in the string.

-- Abel --
Note that IndexOf returns -1 if the sought character is not found.
Avatar of andieje
andieje

ASKER

thanks