Chapter Contents

Previous

Next
LOADRES

LOADRES



Loads a RESOURCE entry

Category: Object Oriented


Syntax
Details
Example
See Also

Syntax

resource-id=LOADRES(resource-name);

resource-id
contains the identifier that is assigned to the resource list.

Type: Numeric

resource-name
is the RESOURCE catalog entry to load. If resource-name is a one- or two-level name, the current search path is used to find the RESOURCE entry.

Type: Character


Details

LOADRES loads a list of classes from a RESOURCE entry. This list is called a resource list. RESOURCE entries are used primarily by FRAME entries, although you can create RESOURCE entries for component classes as well. This function is useful for loading several classes or even entire class hierarchies at one time instead of having to load several CLASS entries.

If a class contained in the resource list has already been loaded, the existing class replaces the class in the resource list (although the RESOURCE entry is not modified). This prevents duplicate class lists for the same class name.


Example

Load a resource list that is stored in APPQR.HIER1.GROUPS.RESOURCE, then load several classes contained in the RESOURCE entry. After the LOADRES call, the LOADCLASS calls do not have to read the classes from the catalog.

groups = loadres('appqr.hier1.groups.resource');
   c1=loadclass('appqr.hier1.c1.class');
   c2=loadclass('appqr.hier1.c2.class');
   c3=loadclass('appqr.hier1.c3.class');

See Also

APPLY

INSTANCE

LOADCLASS

_NEO_

NOTIFY

SEND

SUPAPPLY

SUPER


Chapter Contents

Previous

Next

Top of Page

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