getPar()

Get a par value from the database.

Usage

parVal = acs.getPar( name, path, parType = pnlDb.BOOL )

Parameters

par (string)
The parameter name.
path (string)
Data base path of the par.
parType (Type INT, BOOL, REAL...)
Parameter type. It could be INT, BOOL, REAL, STR, ENUM, REF, TAB, TAREA, LIST, REFS, ARY, FDATA, FILE, DIR, PASSWD, FONT or COLOR.

Return Value

parVal (Depends on parType (int,str,...)
The parameter value.

Errors

The path should be valid.

The type of the parameter in the data base must be in accordance with the parType.

Description

This routine returns a parameter value from the data base. The parameter address is given by its node path and the par name. The parameter type is given by parType. For example,
nodeCrd = ROOT + RS + 'Mesh' + RS + 'Coordinate'
usrIds = acs.getPar( name = "usrIds", path = nodeCrd, ARRAY )