Files
harbour-core/tests/docase.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

30 lines
380 B
Plaintext

// Testing Harbour DO CASE
PROCEDURE Main()
LOCAL n := 2
? "testing Harbour DO CASE"
DO CASE
CASE n == 1
? "n is 1"
? "first case"
CASE n == 2
? "n is 2"
? "second case"
CASE n == 3
? "n is 3"
? "third case"
OTHERWISE
? "Sorry, I don't know what n is :-)"
? "otherwise"
ENDCASE
? "Ok!"
RETURN