Search Locate Previous Next Contents

Adding a New Class Library

It is strongly recommended that you put all your own classes (which may be simple modifications to existing CPro classes) in a separate library. This allows you to upgrade your copy of CPro by a simple:

)xload myws
)copy cpro CPro Class Designer
#.CPro.SetClassPath '#.Class' '#.MyClasses'
#.CPro.Build

... otherwise you could easily overwrite your modifications with the standard class definitions.

Copying the Supplied Template
CProQA is shipped with a prototype class library called UserTemplate (this is in ŒIO=1, ŒML=1). You should make a namespace copy and add this to the list of known libraries ...

 )copy cproqa UserTemplate
 'MyClass' ŒNS ŒOR 'UserTemplate'                                         
 #.CPro.SetClassPath '#.MyClass' '#.Class' 

In general, you should put your libraries first in the list so that if you copy and modify existing CPro classes, your copies will override the standard ones. You can quickly revert to the shipped classes by reversing the order of the libraries.



Continue to: Adding a New Class
© Copyright Causeway Graphical Systems Ltd 2001