Project::GetStorage

Description

Access storage areas.

Syntax

storage GetStorage( LPCSTR lpcszName, bool bAdd = FALSE )

Parameters

lpcszName
[input]storage name
bAdd
[input]defaut value is FALSE

Return

Storage

Examples

EX1

// Check the system storage objects on the active page
// For example, import data using the Import Wizard to ensure creation of system storage object
void OriginObject_GetStorage_Ex1()
{
    Tree    tr;
    storage st;
    st = Project.GetStorage("system");    // System, User and Files are examples of storage objects
                                    // Wave is also an example which is created when you import a sound (WAV) file
    tr = st;
    out_tree(tr);
}

Remark

Access storage areas.

See Also

Project::GetStorageNames

header to Include

origin.h