Files
harbour-core/tests/docase.prg
vszakats a4a357a18b 2013-03-15 11:12 UTC+0100 Viktor Szakats (harbour syenar.net)
* /harbour/* -> /*
    * moved whole Harbour source tree one level up to
      avoid single 'harbour' top dir
2013-03-15 11:13:30 +01:00

34 lines
396 B
Plaintext

/*
* $Id$
*/
// 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