Click or drag to resize

RAt3 Function

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.4a
Syntax
 FUNCTION RAt3(
	cSearch AS STRING,
	cTarget AS STRING,
	dwOffSet AS DWORD
) AS DWORD
View Source

Parameters

cSearch
Type: String
The substring for which to search.
cTarget
Type: String
The string in which to search.
dwOffSet
Type: UInt32
The position in the string at which to start searching.
A value of zero (0) specifies the first byte.

Return Value

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