FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Harbour question
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Harbour question
Posted: Fri Apr 19, 2013 07:11 AM

Good morning

when compiling with Harbour the following i get an error

SWITCH nError
CASE 0
EXIT
CASE -1
ALERT("Mauvais Paramètre")
EXIT
CASE 3
ALERT( "Ce dossier n'esiste pas " + cDir )
EXIT
CASE 5
ALERT("Accès refusé au dossier " + cDir )
EXIT
DEFAULT --------------> this is the cause of the error Error E0020 Incomplete statement or unbalanced delimiters
ALERT( "Erreur inconnue : " + ALLTRIM( STR( nError ) ) + " pour " + cDir )
END

the code is ok with xharbour , does anyone know how to fix this ?

There is a workaround by replacing the whole switch sequence with case endcase or if elseif ,

Thanks

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Harbour question
Posted: Fri Apr 19, 2013 07:26 AM

Working for me.
Hope you are including "hbcompat.ch" after "fivewin.ch"
hbcompat.ch translates DEFAULT to OTHERWISE

Regards



G. N. Rao.

Hyderabad, India
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Harbour question
Posted: Fri Apr 19, 2013 08:47 AM

Thank you

I am new to harbour.....

should have thought about it

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013

Continue the discussion