PDA

View Full Version : Studio doesn't understand #IF (!@ > 181)



raveens
12-Nov-2015, 10:36 PM
Hi DAW,

Any chance of putting this in as a STANDARD conditional check for 18.2?



#IF (!@ > 181)
Use MonthCalendarPrompt.dg
#ELSE
Use Calendar.sl // Needed for date prompt.
#ENDIF


Because of the block off code in an included PKG file - The DF18.1 Studio doesn't want to model my DDs - the DDO explorer says:



No Object to Model

No Data dictionary host object can be referenced from the current context


If I remove the PKG file - all is good!

The studio knows the version of DF its running, or how best to conditional compile blocks like these?

Thanks

Clive Richmond
13-Nov-2015, 12:05 AM
Hi Raveen,

Does this work in earlier releases? I thought !@ was a compiler directive only.

raveens
13-Nov-2015, 01:24 AM
Hi Clive

No. Its never worked with any previous studio. Just thought it would be a good addition / feature.

Nils G. Svedmyr
13-Nov-2015, 08:07 AM
Hi Raveen,

Instead of using the !@ which confuses the Studio, could you instead use something like this?

#IF ((FMAC_VERSION * 10 + FMAC_REVISION) > 180) // If 18.1 or higher

Hope this helps.