At Function | |
Returns the beginning numeric position of the first occurrence of a character expression or memo field within another character expression or memo field, counting from the leftmost character.
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax FUNCTION At(
cSearchExpression AS STRING,
cExpressionSearched AS STRING,
dwOccurrence AS DWORD
) AS DWORD
public static uint At(
string cSearchExpression,
string cExpressionSearched,
[DefaultParameterValueAttribute(1, 0)] uint dwOccurrence
)
Request Example
View SourceParameters
- cSearchExpression
- Type: String
Specifies the character expression that At( ) searches for in cExpressionSearched. - cExpressionSearched
- Type: String
Specifies the character expression cSearchExpression searches for.
Both cSearchExpression and cExpressionSearched can be memo fields of any size.
- dwOccurrence
- Type: DWord
Return Value
Type:
DWordNumeric
Remarks
At( ) searches the second character expression for the first occurrence of the first character expression. It then returns an integer indicating the position of the first character in the character expression found. If the character expression isn't found, At( ) returns 0.
The search performed by At( ) is case-sensitive. To perform a search that isn't case-sensitive, use AtC( ).
See Also