PB Marco Processing

Started by kunhock, June 20, 2007, 01:50:08 PM

Previous topic - Next topic

kunhock

Hi .. just want to confirm that FireFly does not send to PB compiler for macro processing. I am getting compilation error on codes that should not be there if the macro processing is performed. 

Regards and Thanks.

Kunhock

TechSupport

Can you post or email me the macro? FireFly should recognize the macro and move it to the CODEGEN_PROJECT_DECLARES.INC code output file. Maybe FireFly is failing to correctly read your macro.

kunhock

Yes, sure, the macro is as follows:

' if using console compiler, then provide a substitute function for msgbox function call
#If %Def(%Pb_Cc32)
Sub MsgBox(AStr As String, Opt Dummy As Integer, DummyStr As String)
  SQL_Msgbox AStr, %Msgbox_Ok
END SUB
#ENDIF

This part is not required when I work on Firefly with PB Win 8.0. The compilation works fine if it appears in an include file. However, when it is present in a firefly project module, it produces a compiler error like this:

Error Number=426
Error Description=Variable expected
declare Sub Msgbox(aStr as String, Opt Dummy as Integer, Dummy Str as string)

seemed to me that is for project module, the firefly codegen preemptively add in a declaration for the potential sub.


Regards.
Kunhock