|
NetRexx Overview, version 1.160
Copyright (c) IBM Corporation, 2000. All rights reserved. © | 10 Feb 2000 |
| [previous | contents | next] |
array=String[3] -- make an array of three Strings
array[0]='String one' -- set each array item
array[1]='Another string'
array[2]='foobar'
loop i=0 to 2 -- display the items
say array[i]
end
This example also shows NetRexx line comments; the sequence
'--' (outside of literal strings or
'/*' comments) indicates that the remainder of the
line is not part of the program and is commentary.
From
The NetRexx Language by
Mike Cowlishaw,