This document covers the following topics:
Collection of the development objects currently open in a program editor window. This collection comprises the following development object types: program, subprogram, subroutine, function, helproutine, copycode, text and class. The types are identified by a numeric ID. The IDs of predefined types are defined in the section Predefined Node Types.
The following properties are available:
Used to navigate to the parent interface of this interface.
Natural Data Format | Variant Type | Remark |
---|---|---|
HANDLE OF OBJECT | VT_DISPATCH (INatAutoObjects) | Get only |
Used to navigate to the root interface.
Natural Data Format | Variant Type | Remark |
---|---|---|
HANDLE OF OBJECT | VT_DISPATCH (INatAutoStudio) | Get only |
The number of development objects currently open in a program editor window.
Natural Data Format | Variant Type | Remark |
---|---|---|
I4 | VT_I4 | Get only |
The following methods are available:
Returns a specific development object from the collection.
Name | Natural Data Format | Variant Type | Remark |
---|---|---|---|
Return value | HANDLE OF OBJECT | VT_DISPATCH (INatAutoProgram) | |
Index |
I4 |
VT_I4 |
|
Type | I4 | VT_I4 | Optional |
Library | A | VT_BSTR | Optional |
Fnr | I4 | VT_I4 | Optional |
DBnr | I4 | VT_I4 | Optional |
The development object identified by the value specified in Index.
Identifies a specific development object in the collection. This can be either the index of the development object in the collection (a value between 1 and Count) or the name of the object.
Used to identify a specific object by name (specified in Index) and type (specified in Type).
Used to identify a specific object by name (specified in Index), type (specified in Type) and library (specified in Library).
Used to identify a specific object by name (specified in Index), type (specified in Type), library (specified in Library) and system file (specified in Fnr and DBnr).
Creates a new (untitled) development object and opens it in a program editor window.
Name | Natural Data Format | Variant Type | Remark |
---|---|---|---|
Return value | HANDLE OF OBJECT | VT_DISPATCH (INatAutoProgram) | |
Type | I4 | VT_I4 | |
Visible | L | VT_BOOL | Optional |
The newly created development object.
The type of object to create.
Decides if the editor is opened visible or not. By default, the editor is opened visible.
Opens an existing development object in a program editor window.
Name | Natural Data Format | Variant Type | Remark |
---|---|---|---|
Return value | HANDLE OF OBJECT | VT_DISPATCH (INatAutoProgram) | |
Type | I4 | VT_I4 | |
Name | A | VT_BSTR | |
Library | A | VT_BSTR | Optional |
Visible | L | VT_BOOL | Optional |
ReadOnly | L | VT_BOOL | Optional |
The newly opened development object.
The type of object to open.
The name of object to open.
The library of object to open.
Decides whether the editor is opened visible or not. By default, the editor is opened visible.
Decides whether the object is listed only instead of opened. In this case, the object is not locked and cannot be modified. If the option ReadOnly is specified, also the types dialog, local data area, parameter data area and global data area can be specified in the parameter Type. This is the case because Natural Studio lists also these object types in the program editor.