Initializing help system before first use

gettextvalue

gettextvalue


Purpose
Retrieve a text value held within a jvmobject
Synopsis
function gettextvalue(obj:jvmobject) : text
Argument
obj 
The object reference to query, which must be an instance of java.lang.String
Return value
The boolean value held within the Java object
Further information
1. If the reference within the jvmobject is null, calling this function will cause the model to immediately terminate with an error. You can use getisnull to check the object reference is set before calling this.
2. If the jvmobject is not a java.lang.String, calling this function will cause the model to immediately terminate with an error. You can use getclass to check the object reference type before calling this.
3. If the wish to get the text representation of a jvmobject regardless of type, convert to a text directly, ie: text(obj) - this will call the Java toString() method and will return a sensible dummy value if the reference is null.
Related topics