If you are designing a custom class user object that you plan to deploy as a Jaguar or COM component, you can have PowerBuilder warn you when you use code elements that are not valid in the deployment environment you selected.
Both Jaguar validation and COM/MTS validation check public instance variables and public functions for system types, visual types, structures, and any variables. COM/MTS validation also checks for overloaded functions.
In the User Object painter, select Design>Jaguar Validation or Design>COM/MTS Validation from the menu bar. When you save the object, the Compiler Information Messages dialog box lists warnings such as the following:
Information C0197: Component Validation
Warning C0198: illegal Jaguar type: 'any' arg type for function: 'of_badfunc'
Warning C0198: illegal Jaguar type: 'window' arg type for function: 'of_badfunc'
If you check both validation items on the Design menu, both are active. Validation is associated with the object you are editing, not with the User Object painter. When you reopen an object, it has the same validation state as when you closed it. New objects are created with no validation items checked.
Wizards enable validation If you create a new user object using the Jaguar or COM/MTS Start or Object wizards, validation is enabled by default.