Jump to content

Last Line


Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...