Jump to content

[ASK] How to read content of GuiCtrlCreateEdit


Recommended Posts

Hi,

I need to read content of GuiCtrlCreateEdit line by line. I know I can read the whole content using GUICtrlRead, but this time I need to read the content each line until end of content. Maybe read them and put them on array ? Would somebody here show me how to do it? Just give me a clue or function name or maybe a little example code and I will figure it out :)

Thanks a lot :)

Link to comment
Share on other sites

Just read the whole thing and use StringSplit() to break it into an array of lines.

:)

Thanks PsaltyDS, works great :)

Another question:

let say the editbox has line without text, only CRLF, for example this is the content of the editbox:

line1: a

line2: b

line3: c

line4: @cRLF

line5: @CRLF

line6: d

line7: @CRLF

line8: @CRLF

When I split it with StringSplit using @CRLF as delimiter, I got 8 result which is I dont want. I only want line1, line2, line3 and line6. I dont want lines that only contain @CRLF. Any clue how to do that?

Thanks a lot :P

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...