How to check if the current line the cursor is on is a blank line?
mucho apprecio
Blank line... how to check for?
Re: Blank line... how to check for?
Umm, lemme see... maybe read the current line and find if it equals to null?
¡De nada!
¡De nada!
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
Re: Blank line... how to check for?
Ummm.... i dont think so
Re: Blank line... how to check for?
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
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?
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus