setvalue
setvalue |
Purpose
Synopsis
procedure setvalue(obj:jvmobject,ival:integer)
procedure setvalue(obj:jvmobject,rval:real)
procedure setvalue(obj:jvmobject,bval:boolean)
procedure setvalue(obj:jvmobject,sval:string)
procedure setvalue(obj:jvmobject,sval:text)
Arguments
obj
|
The object reference to set
|
ival
|
A value to store within a
java.lang.Integer
|
rval
|
A value to store within a
java.lang.Double
|
bval
|
A value to store within a
java.lang.Boolean
|
sval
|
A value to store within a
java.lang.String
|
Further information
1. This will create a Java object to hold the passed value and store its reference within the
jvmobject. This reference will automatically be deleted when the model ends, or the
jvmobject variable is reset or falls out of scope, or
setvalue or
setnull is called for this object.
2. Deletes any reference to a Java object that was previously held by the
jvmobject. If there are no other references to the Java object, it may become eligible for garbage collection in the usual Java way.
3. If
mosjvm has not yet loaded the Java Virtual Machine into the Mosel process, it will be loaded by this function. If Java cannot be found or an error occurs loading it, the model will terminate with a runtime error.
Related topics