Previous ION Java User's Guide: ION Java Class and Method Reference Next

getString()

The getString() method returns the string value of the variable. If the value is not of type string, the scalar value is converted to a string.

Syntax

public final String getString()

Return Value

The method returns the string value of the variable.

Arguments

None.

Exceptions

IONIsAnArrayException

Example

try {  
String st = myVariable.getString();  
}catch(IONIsAnArrayException e){  
   System.err.println("Variable is an array");  
}  

  IDL Online Help (March 06, 2007)