Re: [xHarbour-developers] Error E0047 Code block contains both macro and declared symbol references
Il 08/10/2016 15:31, Mario Simoes Filho ha scritto: > Hi, guys, > when compiling the example below the error occurs > "Error E0047 Code block contains both macro and declared symbol references" > the last line > to remove the line LOCATE error "disappears" You have to use LOCATE FOR &( cExp ) EMG -- http://www.emagsoftware.it http://www.emagsoftware.it/emgmusic http://www.emagsoftware.it/spectrum http://www.emagsoftware.it/tbosg -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers
[xHarbour-developers] Error E0047 Code block contains both macro and declared symbol references
Hi, guys, when compiling the example below the error occurs "Error E0047 Code block contains both macro and declared symbol references" the last line to remove the line LOCATE error "disappears" Mario #include "hbclass.ch" PROCEDURE Main( ) RETURN CLASS test METHOD Locate( cExp ) ENDCLASS METHOD Locate( cExp ) CLASS test Select( ::nArea ) LOCATE FOR &cExp // coment this line RETURN Self STATIC FUNCTION EarlyFieldBlock( nField ) return {|Self, xVal| IIF( PCount() == 2, ( Self:nArea )->( FieldPut( nField, xVal ) ), ( Self:nArea )->( FieldGet( nField ) ) ) } -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers