Mickeys
asked on
How should this indexof be?
If I add Andersson I get it right
But if I add aaaaaa its not right
if (contact[i].LastName.ToLow er().Index Of(letter. ToString() .ToLower() )== 0)
What I am after is that every word that starts with for example A should be true. But in the case of aaaaa I get the number 4 back in debug mode. How should my if statment be to be like I want to happen?
But if I add aaaaaa its not right
if (contact[i].LastName.ToLow
What I am after is that every word that starts with for example A should be true. But in the case of aaaaa I get the number 4 back in debug mode. How should my if statment be to be like I want to happen?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.