Page 1 of 1
Blank line... how to check for?
Posted: 05 Aug 2018 17:28
by raptordog
How to check if the current line the cursor is on is a blank line?
mucho apprecio
Re: Blank line... how to check for?
Posted: 05 Aug 2018 20:17
by pjj
Umm, lemme see... maybe read the current line and find if it equals to null?
¡De nada!
Re: Blank line... how to check for?
Posted: 06 Aug 2018 00:42
by raptordog
Ummm.... i dont think so
Re: Blank line... how to check for?
Posted: 06 Aug 2018 01:21
by raptordog
Try this instead........
if ((Length(Trim(document.Lines[document.CursorY]))) == 0)
It will test the current line for a blank as well as only containing only whitespace.
Cheers big ears
Re: Blank line... how to check for?
Posted: 06 Aug 2018 07:21
by pjj
Re: Blank line... how to check for?
Posted: 06 Aug 2018 12:52
by raptordog
- 002.gif (12.04 KiB) Viewed 15242 times