Green Fuze
April 13th, 2005, 06:15 AM
Hey!
I'm trying to display on a MessageBox only a part of a string.
let say that my string (strWord) looks like this:
<line1>hello</line1>
<line2>whats up?</line2>
<line3>everything is ALRIGHT???</line3>
now, I want to display only the second line (whats up?),
now, I know how to display charachters from the most right (strWord.Left(int...) or strWord.Right(int...)), and I can calculate the number of chars I need to start displaying, and to calculate how many chars I need to display, BUT, what I don't know is how to tell VC to actually start display from there.
meaning, if I want to start displaying from the 29th charachter (which is the "w" of the "whats up?") how do I do that? and how do I tell him to display only the next 9 chars?
THANKS!!!
I'm trying to display on a MessageBox only a part of a string.
let say that my string (strWord) looks like this:
<line1>hello</line1>
<line2>whats up?</line2>
<line3>everything is ALRIGHT???</line3>
now, I want to display only the second line (whats up?),
now, I know how to display charachters from the most right (strWord.Left(int...) or strWord.Right(int...)), and I can calculate the number of chars I need to start displaying, and to calculate how many chars I need to display, BUT, what I don't know is how to tell VC to actually start display from there.
meaning, if I want to start displaying from the 29th charachter (which is the "w" of the "whats up?") how do I do that? and how do I tell him to display only the next 9 chars?
THANKS!!!