Searches the string for pattern and returns the ordinal position of the first occurrence of pattern. The first character in a string is always at an ordinal position of 1. This method is case-sensitive.
substr(string pattern);
Parameter |
Description |
---|---|
pattern |
Pattern for which to search. Can be a literal value or another string object. |
Integer. Returns the ordinal position of the first occurrence of pattern, if successful, and 0, if failed.
Pointer to object |
Object |
---|---|
|
|
|
|
|
|
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |