Files
harbour-core/tests/arrayidx.prg
Viktor Szakats 3ed9fa0f45 2016-01-14 19:33 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
* *
    % remove brandings and homepage from copyright header. Pass 2 - semi-auto.
    * project homepage and name is described in README, amongst others
    ; this should make the diff between 3.4 and 3.2 easier to manage
2016-01-14 19:35:07 +01:00

27 lines
400 B
Plaintext

//
// Array Index tests
//
// Written by Eddie Runia <eddie@runia.com>
//
// Placed in the public domain
//
PROCEDURE Main()
LOCAL aList := { 1, 2, 3, 4, 5, 6 }
? aList[ 1 ] += 5
? aList[ 1 ]
? aList[ 2 ] -= 5
? aList[ 2 ]
? aList[ 3 ] *= 5
? aList[ 3 ]
? aList[ 4 ] /= 5
? aList[ 4 ]
? aList[ 5 ] ^= 5
? aList[ 5 ]
? aList[ 6 ] %= 5
? aList[ 6 ]
RETURN