Initializing help system before first use

# getstrvalue

Purpose
Retrieve a string value held within a jvmobject
Synopsis
`function getstrvalue(obj:jvmobject) : string`
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 string representation of a jvmobject regardless of type, convert to a string directly, ie: string(obj) - this will call the Java toString() method and will return sensible dummy values if the reference is null or if toString() throws an exception.
Related topics
setvalue, gettextvalue
Parent Topic Procedures and functions

© 2001-2026 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.