Click or drag to resize

RAtC 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.21
Syntax
 FUNCTION RAtC(
	cSearchExpression AS STRING,
	cExpressionSearched AS STRING,
	 dwOccurrence AS DWORD
) AS DWORD
Request Example View Source

Parameters

cSearchExpression
Type: String
Specifies the character expression that RAtC() looks for in cExpressionSearched.
cExpressionSearched
Type: String
Specifies the character expression that RAtC() 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

Reference

RAtC(String, String, DWord)