Click or drag to resize

MLPos2 Function

Determine the position of a line in a string.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.2a
Syntax
 FUNCTION MLPos2(
	cString AS STRING,
	dwLine AS DWORD
) AS DWORD
View Source

Parameters

cString
Type: String
A string.
dwLine
Type: UInt32
The line number.

Return Value

Type: UInt32
The character position of <dwLine> in <cString>.  If <dwLine> is greater than the number of lines in <cString>, MLPos2() returns the length of <cString>.
Remarks
MLPos2() is similar to MLPos() except that MLPos2() has only two arguments and those arguments are strongly typed.  See MLPos() for more information.
Examples