PDA

View Full Version : Defining Preprocessor symbol with #DEF and batch file issue



Doug I
06-20-2007, 10:51 AM
Hi,

This is a suggestion that would make it much easier for us to switch between running an SB script from a batch file versus running manually.

Currently, I have to edit the script each time I want to switch between manual/batch mode. I have to change the value of my #DEF variable to avoid a GEN1070: Unknown preprocessor error.
This is not a user-friendly solution when I need a non-programmer to recompile one of the scripts for me manually.

A simple solution might be to allow for a default value on the option of "Get Value from Compiler Command Line" setting within the #DEF command.
Currently, there is already a New Value field on that window... so if that was used as the default if the script doesn't find a command line, then I could easily work the script to go into manual mode.

Unfortunately, the GEN1070 error is getting in the way and there is no workaround.

Later,
Doug

linder
06-21-2007, 05:59 AM
Doug,

Did you already play with the new compiler variable #ifcompvar and Releases feature? It should do exactely what you need.

HTH,

Friedrich