IsPropertyNumSortedChar method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Returns a Boolean value indicating whether the data type of a property in a collection is NUMSORTCHAR. Read-only.
Syntax
object.IsPropertyNumSortedChar( string )
Part | Description |
object | Required. A reference to an IDO collection object. |
string | Required. The name of an IDO collection property. |
Remarks
A NUMSORTCHAR value is a numeric or alphanumeric string that is padded for the purpose of proper numeric sorting. For details on how the property is padded, see the ExpandNumSortedChar method.
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
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