FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error E0047 Code Both block contains macro and declared symb
Posts: 181
Joined: Thu Apr 17, 2008 02:38 PM
Error E0047 Code Both block contains macro and declared symb
Posted: Sat Sep 17, 2016 07:29 AM

Hello everyone

Has anyone solved the following compilation error in xHarbour:
Error E0047 Code Both block contains macro and declared symbol
I tried to get the line that produces the error in a small test program

DbEval( {|| nRet ++ }, {|| .not. Deleted() } )

but in that case the compilation is successful.

thank you

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Error E0047 Code Both block contains macro and declared symb
Posted: Sat Sep 17, 2016 09:23 AM

We need a PRG sample showing the problem.

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Error E0047 Code Both block contains macro and declared symb
Posted: Sat Sep 17, 2016 09:25 AM
This compiles fine here:

Code (fw): Select all Collapse
FUNCTION MAIN()

    LOCAL nRet

    DbEval( {|| nRet ++ }, {|| .not. Deleted() } )

    RETURN NIL


EMG

Continue the discussion