Chapter Contents

Previous

Next
CREATESCL

CREATESCL


Writes class or interface information to an SCL entry

Category: Object Oriented


Syntax
Details
Example
See Also

Syntax

entry-id=CREATESCL(entry-name, scl-entry<,description>);

entry-id
contains the identifier that is assigned to the class or interface. If the class does not exist, entry-id contains 0.

Type: Numeric

entry-name
is the one- to four-level name of the CLASS or INTERFACE catalog entry to load. If entry-name is a one- or two-level name, then the current search path is used to find the CLASS or INTERFACE entry. If the entry was previously loaded, then the same identifier is returned. Otherwise, the entry is loaded from the catalog into the application class list, and the entry identifier is returned in entry-id.

Type: Character

scl-entry
is the one- to four-level name of the SCL entry to be created.

description
is the description of the SCL entry.


Details

CREATESCL writes the class or interface definition that is in entry-name to an SCL entry. The class definition is written to a CLASS or INTERFACE statement block in the SCL entry that is specified in scl-entry.

You can revise the code in scl-entry and use the SAVECLASS command to create a new or revised class/interface. For example, you can use the CREATESCL function to generate a Version 7 class that contains Version 6 class information. You can add the method signatures, scope, and so on, and then generate a new class using the SAVECLASS command. This process is described in Converting Version 6 Non-Visual Classes to Version 7 Classes.

For more information on the SAVECLASS command, see the online Help for SAS/AF software.

For a description of the CLASS and INTERFACE statement syntax that is written to the SCL entry, see CLASS and INTERFACE.


Example

Create a definition of SASHELP.CLASSES.CHECKBOX_C.CLASS for conversion to class syntax:


myClass=CREATESCL('sashelp.classes.checkbox_c.class',
   'work.a.checkbox_c.scl',
   'CheckBox class to convert');

See Also

APPLY

INSTANCE

LOADRES

NOTIFY

SEND

SUPAPPLY

SUPER


Chapter Contents

Previous

Next

Top of Page

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.