Page 1 of 1

Edit box skips empty lines

Posted: 11 Dec 2023, 11:14
by l6908lay
In the below image you'll notice at the moment z == 2 which is a dependent on the ControlGet, , Line, N feature...This line in the editbox is blank however, the fact it is blank still provides text. Instead of returning a value of line 2 it gives line one.. But, even more curious is it skips all blank lines (of course if I place the editbox contents in a file the blank line is there). For anyone who might want to be using editbox for their project.Image

Re: Edit box skips empty lines

Posted: 11 Dec 2023, 11:59
by l6908lay
I have figured out a simple solution... Simply put in a if statement.

Code: Select all

if (rowtext == "")
{
	; this line is now empty and we all know it.
}