Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.GetCounter
Gets the value of a counter.
Syntax
public int GetCounter(String counter) throws ExceptionParameters
counter
- Name of counter to get.
Returns
Value of counter.
Throws
Exception
- If there is no counter with this name, the
GetCounter()
method returnsnull
. This will causeInteger.parseInt()
to throw aNumberFormatException
.
Example
The following example gets the value of a counter:
try { int myCounter = ics.GetCounter("testCounter"); } catch(Exception e) { //handle exception }See Also
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.