ContentsIndexPreviousNext

6.10.5 Name Clashes

Often an ActiveX control may have property, method or event names that are the same as ACUCOBOL-GT standard property or style names. This creates ambiguity for the compiler. Since ActiveX class names are used in the USAGE HANDLE clause of data description entries, in screen section items and in DISPLAY statements, they may also cause ambiguities with COBOL reserved words.

To avoid these ambiguities, AXDEFGEN prepends an "at" sign character, "@", to every class, property, method and event name in the generated file.

In addition, ambiguity may occur with event names since two or more ActiveX controls may define the same event name. To reduce this possibility, AXDEFGEN prepends the control name to each event name.

For example, if an ActiveX control named "MyControl" had an event called "RightMouseButtonClick", AXDEFGEN would name the control "@MyControl" and the event "@MyControlRightMouseButtonClick".

The "at" sign '@' is not required unless there are ambiguities in the meaning in a certain context. '@' may generally be omitted unless there is an identifier or key word with the same name.

If a class name immediately follows the level number in a screen section item, however, you must either use the '@' prefix or specify FILLER between the level number and class name.