PropertyObject.ValidateNewElementName
- Updated2024-10-09
- 1 minute(s) read
PropertyObject.ValidateNewElementName
Syntax
PropertyObject.ValidateNewElementName( newName, allowDuplicates, isValid)
Return Value
Returns an explanation of why the name is not valid.
Purpose
Determines if the specified name is valid for a new element of the PropertyObject.
Remarks
This method is valid only for arrays of containers or arrays of named types. Call this method before adding a new element to determine whether the name of the new element is valid.
Parameters
newName As String
[In] Specifies the new name to validate.
allowDuplicates As Boolean
[In] In addition to validating the name, also checks if the name is already in use. Typically, you pass True to this parameter because array elements are allowed to have duplicate names.
isValid As Boolean
[Out] Returns True if the new name is valid.
See Also
PropertyObject.ValidateNewName
PropertyObject.ValidateNewSubPropertyName
Thread Safety of the PropertyObject API and TestStand Variables