Page 1 of 1

error 0004 local declaration...

PostPosted: Fri Sep 09, 2011 7:18 pm
by jds
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
.....

Re: error 0004 local declaration...

PostPosted: Fri Sep 09, 2011 7:26 pm
by ADutheil
Check above the function declaration. You probably have some unclosed structure before FUNCTION X. (missing endif ...)

Re: error 0004 local declaration...

PostPosted: Fri Sep 09, 2011 7:42 pm
by Gale FORd
I think you may have a local statement further down in your code. All locals have to be declared before any executable lines.