Previous Application Programming: Files and Input/Output Next

: Format Code

Available Format Codes

The colon format code terminates format processing if there are no more data remaining in the argument list.

The syntax is:

:  

For example, the IDL statement,

PRINT, FORMAT = '(6(I1, :, ", "))', INDGEN(6)  

will output the following comma-separated list of integer values:

0, 1, 2, 3, 4, 5  

The use of the colon format code prevented a comma from being output following the final item in the argument list.

  IDL Online Help (March 06, 2007)