error 0004 local declaration...

error 0004 local declaration...

Postby jds » Fri Sep 09, 2011 7: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
.....
jds
 
Posts: 117
Joined: Sat Dec 05, 2009 12:44 pm

Re: error 0004 local declaration...

Postby ADutheil » Fri Sep 09, 2011 7: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
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: error 0004 local declaration...

Postby Gale FORd » Fri Sep 09, 2011 7: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.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 33 guests