Home > Contents > 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.
nullremoves the object.
Description
The
SetObjmethod 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
trueon success,falseon failure.Error Numbers
Use
to view the error.GetErrno()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 > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.