###User Defined Function###
_GUICtrlRichEdit_GetLineNumberFromCharPos

###Description###
Retrieves the line number on which an inter-character position is found

###Syntax###
#include <GuiRichEdit.au3>
_GUICtrlRichEdit_GetLineNumberFromCharPos ( $hWnd, $iCharPos )


###Parameters###
@@ParamTable@@
$hWnd
	Handle to the control
$iCharPos
	Inter-character position
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	the line number (1-based).
Failure:	0 and sets the @error flag to non-zero.
@error:	101 - $hWnd is not a handle
	102 - $iCharPos is not a positive number
@@End@@


###Remarks###
A control that contains no text has one line.
The first inter-character position in a control is 0.

The first line is line 1.

If $iCharPos is negative or more than the number of characters in the control, returns the number of lines in the control.


###Related###


###See Also###
@@MsdnLink@@ EM_EXLINEFROMCHAR


###Example###
@@IncludeExample@@
