If you want to avoid these errors use #IFNDEF Preprocessor Directive where you define your constants.
>This is an application originally built in VFP7 that I am rebuilding in VFP9.
>
>Compiling the project in VFP9 gives these errors.
>
>
>
>#DEFINE COMATTRIB_HIDDEN 0x40
>Error in line 1612 of toolbar_app.cmdNew.Click (record 67): Constant is already created with #DEFINE.
>#DEFINE COMATTRIB_NONBROWSABLE 0x400
>Error in line 1614 of toolbar_app.cmdNew.Click (record 67): Constant is already created with #DEFINE.
>
>
>I cannot find these #DEFINEs in the project. The COMATTRIB_HIDDEN is mentioned in the Help file but it doesn't help much.
>
>How can I fix these errors?
>
>Also, what is the record number in the error message above? The class contains 37 records, so record 67 cannot be a record there.
>
>Cyril
If it's not broken, fix it until it is.
My Blog