Skip to main content
PREV CLASS NEXT CLASS FRAMES NO FRAMES

 

Class IloOplOutputString

IloOplOutputString

Description:

See the Overview for a general presentation of the ILOG Script extensions for OPL.

Example:
execute {
  var str = new IloOplOutputString();
  with (str) {
    writeln("Hello World");
 }
 writeln("str = ",str.getString());
}
Iterating properties:
Empty iteration.
Index resolution:
Default behavior.
Available for:
flow control

Constructor Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
flow control
Returns the content of the output string.
flow control
write(text, textN)
Writes a string to the output string.
flow control
writeln(text, textN)
Writes one line to the output string.
Constructor Detail
IloOplOutputString
IloOplOutputString()
Method Detail
getString
{string} getString()
Returns the content of the output string.
Available for:
flow control

write
write(text, textN)
Writes a string to the output string.
Parameters:
text - The contents of the string.
textN - Optional, n strings
Available for:
flow control

writeln
writeln(text, textN)
Writes one line to the output string.
Parameters:
text - The contents of the string. Ends with a new line.
textN - Optional, n strings.
Available for:
flow control

©Copyright IBM Corp. 1987-2011.