MACRO ERROR
Posted: Sat Sep 14, 2019 11:01 am
I'm converting an my old clipper application and I have a strange error on compilation
give me error at this line
@ riga, 1 + numeri * 5 say massimo + " (" + &num + ")" OF oAmbRitardo SIZE 30,10
errors
source\PAmbata.prg(176) Error E0047 Code block contains both macro and declared symbol references 'MASSIMO'
source\PAmbata.prg(176) Error E0047 Code block contains both macro and declared symbol references 'NUM'
source\PAmbata.prg(176) Error E0042 Macro of declared symbol '{|| massimo + " (" + &num + ")"}'
3 errors
why and How I can resolve ?
Code: Select all
numeri:= 1
do while (numeri <= 10)
conta:= 1
rmax:= 0
do while (conta <= 90)
num:= "N" + LTrim(Str(conta))
if (Val(&num) >= rmax)
massimo:= SubStr(num, 2, 2)
rmax:= Val(&num)
endif
conta:= conta + 1
enddo
num:= "N" + LTrim(massimo)
numeri:= numeri + 1
@ riga, 1 + numeri * 5 say massimo + " (" + &num + ")" OF oAmbRitardo SIZE 30,10
&num:= "0"
enddo
@ riga, 1 + numeri * 5 say massimo + " (" + &num + ")" OF oAmbRitardo SIZE 30,10
errors
source\PAmbata.prg(176) Error E0047 Code block contains both macro and declared symbol references 'MASSIMO'
source\PAmbata.prg(176) Error E0047 Code block contains both macro and declared symbol references 'NUM'
source\PAmbata.prg(176) Error E0042 Macro of declared symbol '{|| massimo + " (" + &num + ")"}'
3 errors
why and How I can resolve ?