* (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
30 lines
380 B
Plaintext
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
|