AnaProp::GetDetail (Interface: AnaProp)
 
Gets an accounting detail from the proposal.
 
VARIANT_BOOL GetDetail (
    SHORT sIndex,
    VARIANT* pvPercentage,
    VARIANT* pvValue1,
    VARIANT* pvAnaAccount,
    VARIANT* pvAnaKind,
    VARIANT* pvRemark,
    VARIANT* pvText1
)
 
Parameters
sIndex
[in] The index of the detail, starting from 0.
pvPercentage
[out] Returns a VARIANT, subtype DOUBLE, containing the percentage of the detail.
pvValue1
[out] Returns a VARIANT, subtype DOUBLE, containing the free value of the detail.
pvAnaAccount
[out] Returns a VARIANT, subtype BSTR, containing the analytical account of the detail.
pvAnaKind
[out] Returns a VARIANT, subtype BSTR, containing the analytical kind of the detail.
pvRemark
[out] Returns a VARIANT, subtype BSTR, containing the remark of the detail.
pvText1
[out] Returns a VARIANT, subtype BSTR, containing the free text of the detail.
 
Return value
True if the detail with the given index exists, otherwise false.
 
See Also
CreateAnaProp
Handling analytical accounting proposals using the SDK
PrepareProposal
GetNumDetails
CancelProposal
 
Samples
 
C++
 
// Retrieve all detail data of the current proposal
VARIANT vPercentage, vValue1, vAnaAccount, vAnaKind, vRemark, vText1;
short sNumDetails;

pAnaProp->PrepareProposal (paView);

sNumDetails = pAnaProp->GetNumDetails ();

for (short sDetail = 0; sDetail < sNumDetails; sDetail++)
{
    if (pAnaProp->GetDetail (sDetail, &vPercentage, &vValue1, &vAnaAccount, &vAnaKind, &vRemark, &vText1))
    {
        // Process data
    }
}

pAnaProp->CancelProposal ();

C#
 
// Retrieve all detail data of the current proposal
object oPercentage, oValue1, oAnaAccount, oAnaKind, oRemark, oText1;
short sNumDetails;

oAnaProp.PrepareProposal (ePrepareAction.paView);

sNumDetails = oAnaProp.GetNumDetails ();

for (short sDetail = 0; sDetail < sNumDetails; sDetail++)
{
    if (oAnaProp.GetDetail (sDetail, out oPercentage, out oValue1, out oAnaAccount, out oAnaKind, out oRemark, out oText1))
    {
        // Process data
    }
}

oAnaProp.CancelProposal ();

VBS
 
' Retrieve all detail data of the current proposal
Dim oPercentage, oValue1, oAnaAccount, oAnaKind, oRemark, oText1
Dim sDetail, sNumDetails

Call oAnaProp.PrepareProposal(paView)

sNumDetails = oAnaProp.GetNumDetails()

For sDetail = 0 To sNumDetails - 1
    If oAnaProp.GetDetail(sDetail, oPercentage, oValue1, oAnaAccount, oAnaKind, oRemark, oText1) Then
        ' Process data
    End If
Next

Call oAnaProp.CancelProposal()

VB.NET
 
' Retrieve all detail data of the current proposal
Dim oPercentage, oValue1, oAnaAccount, oAnaKind, oRemark, oText1 As Object
Dim sNumDetails As Short

oPercentage = Nothing
oValue1 = Nothing
oAnaAccount = Nothing
oAnaKind = Nothing
oText1 = Nothing

oAnaProp.PrepareProposal(ePrepareAction.paView)

sNumDetails = oAnaProp.GetNumDetails()

For sDetail As Short = 0 To sNumDetails - 1
    If oAnaProp.GetDetail(sDetail, oPercentage, oValue1, oAnaAccount, oAnaKind, oRemark, oText1) Then
        ' Process data
    End If
Next

Call oAnaProp.CancelProposal()