Does Lianja allow for conditional compilation with #DEFINE, #IFDEF and #IFNDEF?
We've got some VFP code to display messages to users that will not work with Lianja. So, we're trying to alter our display function based on use of #IFNDEF #ELSE #ENDIF. We defined LIANJACODE as 1. This shows up in the console during as execution as 1 in response to ? LIANJACODE. When the display function code is called:
#IFNDEF LIANJACODE
if mssg = " "
chose597.FrmChose597.LProcessMsg.Visible = .f.
else
chose597.frmchose597.LProcessMsg.visible = .T.
chose597.frmchose597.LProcessMsg.caption = mssg
endif
#ELSE
xlabel = lianja.getelementbyID("Main597_Pg.Genl_Parms.lproc essmsg")
xlabel.caption = mssg
xlabel.refresh
#ENDIF
we get the following error message which shouldn't be compiled or executed:
Wed May 29 12:01:28 2013
**** Lianja error ****
chose597.FrmChose597.LProcessMsg.Visible = .f.
^
Unrecognized command
If conditional compilation is not possible, we'll code differently.
Bookmarks