Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.SetObj
Stores an object by name.
Syntax
public boolean SetObj(String name, Object value)Parameters
name
- Name of the object.
value
- Value of object to save.
null
removes the object.
Description
The
SetObj
method stores an object by name. This method is useful for keeping objects saved during a thread. Any previous objects saved by the same name will be lost.Returns
Returns
true
on success,false
on failure.Errno
Use
GetErrno
()
to view the error.Example
// Set an existing Object myObj and store the name in string myObjName clearResult(); MyObject myObj = new MyObject(9,10); boolean flag = ics.SetObj("myObjName",myObj); errNum = ics.GetErrno
(); showResult();See Also
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.