Progress
Language Reference
INDEX Function
Returns an integer that indicates the position of the target string within the source string.
SYNTAX
source
A character expression.
target
A character expression whose position you want to locate in source. If target does not exist within source, INDEX returns a 0.
starting
An integer that specifies at which left-most position in the string to start the search. For example, INDEX("abcdefabcdef","abc",6) returns 7.
EXAMPLESFor this example, you must enter 1, 2, 3, 4, or 5. The INDEX function checks if the digit exists in the string "12345".
This procedure also uses the starting option.
NOTES
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |