Does this actually compile?? In what environment? I find that hard to believe.
First of all word and Word are two different things. Then, the datatype for eis is incorrect, because IndexOf returns an int.
Next, what is FirstChr? Where did you declare it? You're not assigning it the return value of IndexOf if that's what you think.
If you fixed that, try to add something like this:
myLabel.Text = eis.ToString();
and you'll see where the error is.
I don't think this is related to the book ASP.NET Website Programming Prob-Design-Solution , so can you please post in a proper C# / .NET forum the next time? (I am sorry if this *is* related to the book though).
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Straight to You by
Nick Cave & the Bad Seeds (Track 3 from the album:
Henry's Dream)
What's This?