ItemIDorDesc Method
- Last UpdatedNov 06, 2025
- 1 minute read
The ItemIDorDesc() method returns the item ID for a given item description, or the item description for a given item ID.
'Declaration
Public Shared Function ItemIDorDesc( _
ByVal IDorDesc As String, _
ByVal returnIdFlag As Boolean _
) As String
public static string ItemIDorDesc(
string IDorDesc,
bool returnIdFlag
)
Parameters
- IDorDesc
- Required. Holds either the item ID or the item description.
- returnIdFlag
- Required. Holds a flag that, if set to true, returns the item ID from the given item description. If set to false, the method returns the item description from the given item ID.
Return Value
Returns either the item ID or the item description for the specified item.