GetNextAltNo Method (ItemSubstitute)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetNextAltNo() method gets the next alternate number and the next preference for the substitution item.
'Declaration
Public Shared Sub GetNextAltNo( _
ByVal origItemId As String, _
ByRef nextAltNo As Integer, _
ByRef nextPref As Integer _
)
'Usage
Dim origItemId As String
Dim nextAltNo As Integer
Dim nextPref As Integer
ItemSubstitute.GetNextAltNo(origItemId, nextAltNo, nextPref)
Parameters
- origItemId
Required. Holds the ID of the subtitution item.
- nextAltNo
Required. OUT parameter. Holds the alternate number that is returned after executing this method.
- nextPref
Required. OUT parameter. Holds the preference that is returned after executing this method.