ObjectSetProperty
Mon 01 January 2018Syntax
ObjectSetProperty(obj_this, str_property_name, val [, index_param_list])
Description
Use the ObjectSetProperty function to set the value of a property str_property_name of the object obj_this to val .
The object must have already been instantiated, either using CreateObject or another function or method that returns an object.
Note: Default OLE Automation object properties are not supported. You must specify the object property that you want to set explicitly.
Parameters
| 
      Field or Control  | 
    
      Definition  | 
   
|---|---|
| obj_this | 
      Specify an already instantiated object. This variable must have been instantiated either with CreateObject or another function or method that creates objects.  | 
   
| str_property_name | 
      A string containing the name of an exposed property of obj_this .  | 
   
| val | 
      str_property_name is set to this value.  | 
   
| index_param_list | 
      A comma-separated list of parameters for accessing an OLE automation object indexed property. (This is only used with COM/OLE objects.)  | 
   
Returns
None.