Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 



Constructs a new variable that contains a substring.



STR (required)
String containing substring.

OUTSTR (required)
Name of variable to contain substring.

INDEX (optional)
Beginning offset in STR. The default for this parameter is 0.

ENDINDEX (optional)
Ending offset in STR. The default for this parameter is the length of STR.


The SUBSTRING tag constructs a new variable containing a substring. For more information about variables, Sites Developer's Guide.

Error Numbers

The possible values of errno include:

Bad start index.
Bad end index.
Empty output string.


This example places the value "This is a test" in NewString. The value of the variable NewString is test after this tag executes. An error is set if either of the supplied index values is out of range.

See Also


  Home > Contents > Index >

Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.