|
Gets an article part. |
|
|
VARIANT_BOOL GetPart ( SHORT sIndex, VARIANT* pvQuantity, VARIANT* pvArtNumPart, VARIANT* pvArtDsc, VARIANT* pvPrintMode ) |
|
|
Parameters | sIndex | [in] The index of the article part, starting from 0. | pvQuantity | [out] Returns a VARIANT, subtype DOUBLE, containing the quantity of the article part. | pvArtNumPart | [out] Returns a VARIANT, subtype BSTR, containing the article number of the article part. | pvArtDsc | [out] Returns a VARIANT, subtype BSTR, containing the article description of the article part. | pvPrintMode | [out] Returns a VARIANT, subtype BYTE (unsigned char), containing the printing mode (see ePrintMode for possible values) of the article part. | | Return value |
True if the article part with the given index exists, otherwise false. |
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Retrieve all article part data of the current article
VARIANT vQuantity, vArtNumPart, vArtDsc, vPrintMode;
short sNumParts;
pArtcl->PrepareParts (ppaView);
sNumParts = pArtcl->GetNumParts ();
for (short sPart = 0; sPart < sNumParts; sPart++)
{
if (pArtcl->GetPart (sPart, &vQuantity, &vArtNumPart, &vArtDsc, &vPrintMode))
{
// Process data
}
}
pArtcl->CancelParts ();
|
|
|
C# |
|
// Retrieve all article part data of the current article
object oQuantity, oArtNumPart, oArtDsc, oPrintMode;
short sNumParts;
oArtcl.PrepareParts (ePreparePartsAction.ppaView);
sNumParts = oArtcl.GetNumParts ();
for (short sPart = 0; sPart < sNumParts; sPart++)
{
if (oArtcl.GetPart (sPart, out oQuantity, out oArtNumPart, out oArtDsc, out oPrintMode))
{
// Process data
}
}
oArtcl.CancelParts ();
|
|
|
VBS |
|
' Retrieve all article part data of the current article
Dim oQuantity, oArtNumPart, oArtDsc, oPrintMode
Dim sPart, sNumParts
Call oArtcl.PrepareParts(ppaView)
sNumParts = oArtcl.GetNumParts()
For sPart = 0 To sNumParts - 1
If oArtcl.GetPart(sPart, oQuantity, oArtNumPart, oArtDsc, oPrintMode) Then
' Process data
End If
Next
Call oArtcl.CancelParts()
|
|
|
VB.NET |
|
' Retrieve all article part data of the current article
Dim oQuantity, oArtNumPart, oArtDsc, oPrintMode As Object
Dim sNumParts As Short
oArtcl.PrepareParts(ePreparePartsAction.ppaView)
sNumParts = oArtcl.GetNumParts()
For sPart As Short = 0 To sNumParts - 1
If oArtcl.GetPart(sPart, oQuantity, oArtNumPart, oArtDsc, oPrintMode) Then
' Process data
End If
Next
Call oArtcl.CancelParts()
|
|