Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Arrays/OoRexx/arrays-1.rexx
Normal file
6
Task/Arrays/OoRexx/arrays-1.rexx
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
a = .array~new -- create a zero element array
|
||||
b = .array~new(10) -- create an array with initial size of 10
|
||||
c = .array~of(1, 2, 3) -- create a 3 element array holding objects 1, 2, and 3
|
||||
a[3] = "Fred" -- assign an item
|
||||
b[2] = a[3] -- retrieve an item from the array
|
||||
c~append(4) -- adds to end. c[4] == 4 now
|
||||
5
Task/Arrays/OoRexx/arrays-2.rexx
Normal file
5
Task/Arrays/OoRexx/arrays-2.rexx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
XXX.='*'
|
||||
Say 'xxx.1='xxx.1 -- shows xxx.1=*
|
||||
u=17
|
||||
xxx.u='Joe'
|
||||
Say 'xxx.u='xxx.17 -- shows xxx.u=Joe
|
||||
5
Task/Arrays/OoRexx/arrays-3.rexx
Normal file
5
Task/Arrays/OoRexx/arrays-3.rexx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
u=17
|
||||
v='John Doe'
|
||||
XXX.u.v...='some value'
|
||||
z='17.John Doe...'
|
||||
Say xxx.z shows 'some value'
|
||||
2
Task/Arrays/OoRexx/arrays-4.rexx
Normal file
2
Task/Arrays/OoRexx/arrays-4.rexx
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
person.first='Walter'
|
||||
person.last='Pachl'
|
||||
Loading…
Add table
Add a link
Reference in a new issue