Click or drag to resize

RAt Function

X#
Returns the numeric position of the last occurrence of a character expression or memo field within another character expression or memo field.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION RAt(
	cSearchExpression AS STRING,
	cExpressionSearched AS STRING,
	 dwOccurrence AS DWORD
) AS DWORD
Request Example View Source

Parameters

cSearchExpression
Type: String
Specifies the character expression that RAt() looks for in cExpressionSearched.
cExpressionSearched
Type: String
Specifies the character expression that RAt() searches. The character expressions cSearchExpression and cExpressionSearched can be memo fields of any size.
dwOccurrence
Type: DWord

Return Value

Type: DWord
Numeric
Remarks
The difference between RAtC() and RAt() can be ignored in X# because all characters are unicode, so there is no distinction between single byte and double-byte characters.
See Also