FindClassByName()

<< Click to Display Table of Contents >>

Navigation:  Explain™ Control Language  > Library Routines > Define classes and functions >

FindClassByName()

Description

Return a CLASS, given the class name as a STRING.

 

This function is used to return a class, given information about its name. A specific example where this function is used is in creating a class PSTAT object. As discussed in PSTAT.New(), there actually are different potentiostat classes, such as PCI4, PC5, or PC6. The class information for each potentiostat installed in a system is stored in the Gamry.INI file. By first reading the Class from the *.INI file into a STRING and then by calling the FindClassByName() function, a PCI4, PC5, or PC6 class can be returned.

 

Type

REGULAR FUNCTION

 

Usage

Class = FindClassByName(ClassName)

 

ClassName

STRINT

The name of the class which you want to be returned.

Class

CLASS

The Class with the name ClassName.

 

Related Topics