FindClassByName()

FindClassByName()

Type: REGULAR FUNCTION

Purpose: 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 PSTAT object. As discussed in PSTAT.New, there actually are two different potentiostat classes, PC3 and PC4. 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 PC3 or PC4 class can be returned.

Usage: Result = Class = FindClassByName(ClassName)

  Class CLASS The class with the name ClassName.
  ClassName STRING The name of the class which you want
to be returned

Related Topics Link IconRelated Topics