PropertyObject.Write
- Updated2024-10-09
- 2 minute(s) read
PropertyObject.Write
Syntax
PropertyObject.Write( pathString, objectName, RWoptions)
Purpose
Writes the contents of an object to the file the pathString parameter specifies and associates the name the objectName parameter specifies with the object in the file.
Remarks
If you call this method on an alias object , TestStand generates the stream using the object to which the alias refers. This method does not include alias subproperty objects in the stream.
Parameters
pathString As String
[In] Specifies the pathname of the file to which to write the object data.
objectName As String
[In] Specifies the name to associate with the object.
RWoptions As Long
[In] Pass 0 to specify the default behavior or pass one or more ReadWriteOptions constants. Use the bitwise-OR operator to specify multiple read/write options.
If you have already written an object with the specified name to the file, pass the RWOption_EraseExistingObject constant for this parameter. Otherwise, the values stored in the file do not update to the values of the object you are writing if the object you are writing has default values for some of its properties. Additionally, unless you use the RWOption_EraseExistingObject or RWOption_EraseAll constants, the method leaves properties from previously written versions of the object in the file even if the properties do not exist in the current version of the object being written.