Harbour Reference Guide

 

AT()

Locates the position of a substring in a main string.

Syntax

AT(<cSearch>,<cString>) --> nPos

Arguments

<cSearch> Substring to search for

<cString> Main string

Returns

AT() return the starting position of the first occurrence of the substring in the main string

Description

This function searches the string <cString> for the characters in the first string <cSearch>. If the substring is not contained within the second expression,the function will return 0.
Examples
      QOUT( "at( 'cde', 'abcdefgfedcba' ) = '" +;
      at( 'cde', 'abcsefgfedcba' ) + "'" )
Status

Ready

Compliance

This function is CA-Clipper compatible.

Platforms

All

Files

Library is rtl

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30