Ryan LB Posted May 5, 2005 Share Posted May 5, 2005 Well, I need help on getting a way to find the last line of a large text string. ---- Example: (this would be the output of the string) Ryan: Hello * Ryan waits for Fred. @Bot: Fred Joins! <-- this line ---- If anyone knows how to do this; Thanks in advance. -Ryan Link to comment Share on other sites More sharing options...
GaryFrost Posted May 5, 2005 Share Posted May 5, 2005 That would depend on the format of the text, here's an example of @LF seperated text. $s_text = "Ryan: Hello" & @LF & "* Ryan waits for Fred." & @LF & "@Bot: Fred Joins!" $a_text = StringSplit($s_text, @LF) MsgBox(0,"Last Line",$a_text[$a_text[0] - 1]) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Ryan LB Posted May 5, 2005 Author Share Posted May 5, 2005 How would I go about seeing the format the text is in? I'm recieving this from a window that I haven't much clue on. -Ryan Link to comment Share on other sites More sharing options...
GaryFrost Posted May 5, 2005 Share Posted May 5, 2005 Oh, your talking about a control on some chat or something, whole different thing. Think, for anyone to help you, they'll need more info than what has been given then. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now