PDA

View Full Version : How to make one # define available and comment all the other 3 during run time



vattipalli
12-27-2004, 07:37 AM
Hi,
I have 4 radio buttons CLAAS,IVECO,GEP and FILED_FOLLOW in the first screen. Based on the radio button selected i need to make one line available and comment all the other 3 lines in setup.rul file. Is it possible????.For compilation one line is made available initially..

setup.rule file code:

//#define CLAAS
//#define IVECO
//#define GEP
//#define FIELD_FOLLOW

regards,
vattipalli

Christopher Painter
12-27-2004, 08:39 AM
#defines are preprocessor statements. Once compiled they don't even exist anymore.