Jaguar and COM/MTS code validation
\The Sandbox \PB History & Future \New In PB7 \Jag & COM/MTS Validation
New look
Object-Centric
Development
Nonmodal
Development
Painter
Features
Wizards
To-Do List
Customizable
Shortcuts
Other IDE
Jaguar
Components
Jaguar Clients
COM/MTS
Components
COM/MTS
Clients
Automation
Servers
Remote
Debugging
Jag & COM/MTS
Validation
DB Interfaces
DB Profiles
DB Utilities
DB
Reconnecting
Creating
ASA DB
DW ActiveX
HTML DW
Image
Support
New controls
SP Updates
ActiveX
Documents
SizeMode
Property
CLSID to
Connect
HTML Books

Description

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.

Usage

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.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com