Home > Contents > Index >
SETCOUNTER
Creates a counter.
Syntax
<SETCOUNTER NAME="COUNTER_NAME
" VALUE="COUNTER_VALUE
"/>Parameters
NAME (required)
- Name of the counter to set.
VALUE (required)
- Integer value of counter.
Error Numbers
The possible values of
errno
include:
Value Description -501 Bad counter value.Example
This example creates a counter
frank
, assigns that value to another counter,fred
, and displays the value offred
.
<SETVAR NAME="errno" VALUE="0"/> <SETCOUNTER NAME="frank" VALUE="10"/> <SETCOUNTER NAME="fred" VALUE="Counters.frank"/> <P>Fred is <CSVAR
NAME="Counters.fred"/></P> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>See Also
Home > Contents > Index > Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.