error 0004 local declaration...

Post Reply
jds
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm

error 0004 local declaration...

Post 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
.....
ADutheil
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: error 0004 local declaration...

Post by ADutheil »

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
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

Re: error 0004 local declaration...

Post 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.
Post Reply