Click or drag to resize

ATLine2 Function

X#
Return the line number of the first occurrence of a substring within a multiple line string.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION ATLine2(
	cSearch AS STRING,
	cTarget AS STRING
) AS DWORD
Request Example View Source

Parameters

cSearch
Type: String
The substring for which to search.
cTarget
Type: String
The string in which to search.

Return Value

Type: DWord
The position of the first occurrence of cSearch within cTarget.
If cSearch is not found, AtLine2() returns 0.
Remarks
AtLine2() is like AtLine() except that it returns a WORD. See AtLine() for more information.
Examples
See Also