Click or drag to resize

RAt3 Function

X#
Return the position of the last occurrence of a substring within a string.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION RAt3(
	cSearch AS STRING,
	cTarget AS STRING,
	dwOffSet AS DWORD
) 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.
dwOffSet
Type: DWord
The position in the string at which to start searching.
A value of zero (0) specifies the first byte.

Return Value

Type: DWord
The position of cSearch within cTarget.
If cSearch is not found, RAt3() returns 0.
Remarks
RAt3() is the same as RAt(), except that you can specify an offset that tells where to start searching. See RAt() for more information.
Examples