GetPropertyLength method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Returns an integer indicating the length of a property in a collection.
Syntax
object.GetPropertyLength( string )
| Part | Description | 
| object | Required. A collection object. | 
| string | Required. The name of a collection property. | 
Remarks
If the property has no length specification, this method returns 0 (zero).
Example
Sub Main
   Dim Length As Integer
   Dim CustNum As String
   Dim CustSeq As String
   CustNum = ThisForm.Variables("CustNumV").Value
   CustSeq = ThisForm.Variables("CustSeqV").Value
   ' Ensure CustNum is properly expanded
   If ThisForm.PrimaryIDOCollection.IsPropertyNumSortedChar("CustNum") Then
      Length = ThisForm.PrimaryIDOCollection.GetPropertyLength("CustNum")
      If (Length > 0 And CustNum <> "") Then
         CustNum = Application.ExpandNumSortedChar(CustNum, Length)
      End If
   End If
End Sub