R-INDEX ( source , target , starting )A CHARACTER or LONGCHAR expression whose position you want to locate in source. If target does not exist within source, R-INDEX returns 0.If a starting parameter is not specified, then the search for the target pattern begins at the right-most character. Even though the search is started from the right, the target position is calculated from the left. For example, this code returns a 3 rather than a 2:
R-INDEX("abcd" , "c")This example also uses a starting value:
The R-INDEX function is double-byte enabled. You can specify target and source strings for the R-INDEX function that contain double-byte characters.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |