FeResPost Web Site                     FeResPost Online User Manual

VI.0.2.1 Creating class instances

New instances of the FeResPost classes are obtained by calling the “newObject” method of FeResPost application. The argument of this method is a String containing the name of the class of which a new object is requested. For example, in ruby, the creation of new instances is done with statements like:

   ...  
   frpApp = WIN32OLE.new("FeResPost_3_4_4.Application")  
   ...  
   db=frpApp.newObject("ClaDb")  
   ...  
   mat=frpApp.newObject("ClaMat")  
   ...

The corresponding VBscript lines of code follow:

   ...  
   set frpApp= CreateObject("FeResPost_3_4_4.Application")  
   ...  
   set db=frpApp.newObject("ClaDb")  
   ...  
   set mat=frpApp.newObject("ClaMat")  
   ...