Jump to content
Sign in to follow this  
JustinReno

Get Current Edit Line

Recommended Posts

JustinReno

I've looked through the help file and couldn't find a function to get the current line on an edit control. I'm making a CMD style window and need to read the commands on the previous line of an edit control. My thinking is getting the current line and subtracting it by one.

Are there any work arounds, UDF's, functions or anything that could point me in the correct direction? Thanks. :)

Edited by JustinReno

Share this post


Link to post
Share on other sites
The Ape

I've looked through the help file and couldn't find a function to get the current line on an edit control. I'm making a CMD style window and need to read the commands on the previous line of an edit control. My thinking is getting the current line and subtracting it by one.

Are there any work arounds, UDF's, functions or anything that could point me in the correct direction? Thanks. :)

_GUICtrlEdit_LineFromChar

Remarks

If $iIndex is 1, _GUICtrlEdit_LineFromChar retrieves either the line number of the current line

(the line containing the caret) or, if there is a selection, the line number of the line containing

the beginning of the selection.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.