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.
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.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, 2018, Oracle and/or its affiliates. All rights reserved.