PropertyObject.Clone
- Mise à jour2025-07-21
- Temps de lecture : 1 minute(s)
PropertyObject.Clone
Syntax
PropertyObject.Clone( lookupString, options)
Return Value
Copy of the property. Release the copy when you finish using it.
Purpose
Creates a copy of the property the lookupString parameter specifies.
Remarks
This method does not always make an identical copy unless you use the bitwise-OR operator to specify the PropOption_DoNotShareProperties and PropOption_CopyAllFlags options.
You can create an alias object by using the PropOption_NotOwning option with the PropertyObject.SetPropertyObject or PropertyObject.SetPropertyObjectByOffset methods.
When you clone a step or a sequence, call the Step.CreateNewUniqueStepId or Sequence.CreateNewUniqueStepIds methods to replace the unique step ID with a new unique ID.
Parameters
lookupString As String
[In] Pass an empty string to denote the PropertyObject to which the method applies, or pass the name of a subproperty within the PropertyObject. You can also pass lookup strings to this parameter.
options As Long
[In] Pass 0 to specify the default behavior, or pass one or more PropertyOptions constants. Use the bitwise-OR operator to specify multiple options.
See Also
PropertyObject.SetPropertyObject
PropertyObject.SetPropertyObjectByOffset
Sequence.CreateNewUniqueStepIds
Thread Safety of the PropertyObject API and TestStand Variables