info_get_section

 

Description

Get a section from an OriginObject's Info.

Syntax

bool info_get_section( OriginObject & obj, TreeNode & trSection, LPCSTR lpcszStorageSection )

Parameters

obj
[input] the OriginObject to get the section from
trSection
[output] the tree node to put the section into
lpcszStorageSection
[input] pointer to the storage and section name

Return

If success then true else false

Examples

EX1

void info_get_section_ex1()
{
    Page     pg = Project.Pages(-1); // get active page
    Tree     trSection;
    if( info_get_section(pg, trSection, "User.Variables") )
    {
        out_tree(trSection);
    }
    else
        out_str("Not found User.Variables section");
}

Remark

See Also

info_set_section

header to Include

origin.h

Reference