Initializing help system before first use

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

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.