Files
harbour-core/tests/arrayidx.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

28 lines
436 B
Plaintext

//
// Array Index tests
//
// Written by Eddie Runia <eddie@runia.com>
// www - http://harbour-project.org
//
// 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