Click or drag to resize

MLPos2 Function

X#
Determine the position of a line in a string.

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

Parameters

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

Return Value

Type: DWord
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