FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour error 0004 local declaration...
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM

error 0004 local declaration...

Posted: Fri Sep 09, 2011 07:18 PM

I never got it before but since today I have while compiling the following :
"error 0004 local declaration follows executable statement"
the function begins as follows
FUNCTION X (olbx)
local odlg
local noldrec
.....

Posts: 368
Joined: Sun May 31, 2009 06:25 PM

Re: error 0004 local declaration...

Posted: Fri Sep 09, 2011 07:26 PM

Check above the function declaration. You probably have some unclosed structure before FUNCTION X. (missing endif ...)

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM

Re: error 0004 local declaration...

Posted: Fri Sep 09, 2011 07:42 PM

I think you may have a local statement further down in your code. All locals have to be declared before any executable lines.

Continue the discussion