Venice
AnaProp::InsertDetailSel
 
Inserts an accounting new detail in the proposal (with selectively given values).
 
void InsertDetailSel (
    SHORT sIndex,
    VARIANT vPercentage,
    VARIANT vValue1,
    VARIANT vAnaAccount,
    VARIANT vAnaKind,
    VARIANT vRemark,
    VARIANT vText1
)
 
Parameters
sIndex
[in] The index of the detail, starting from 0.
vPercentage
[in] A VARIANT stating the percentage of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default (0.0) is used.
If a VARIANT of subtype DOUBLE (VT_R8) is supplied, the given value is used.
vValue1
[in] A VARIANT stating the free value of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default (0.0) is used.
If a VARIANT of subtype DOUBLE (VT_R8) is supplied, the given value is used.
vAnaAccount
[in] A VARIANT stating the analytical account of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default ("") is used.
If a VARIANT of subtype BSTR (VT_BSTR) is supplied, the given value is used.
vAnaKind
[in] A VARIANT stating the analytical kind of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default ("") is used.
If a VARIANT of subtype BSTR (VT_BSTR) is supplied, the given value is used.
vRemark
[in] A VARIANT stating the remark of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default ("") is used.
If a VARIANT of subtype BSTR (VT_BSTR) is supplied, the given value is used.
vText1
[in] A VARIANT stating the free text of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default ("") is used.
If a VARIANT of subtype BSTR (VT_BSTR) is supplied, the given value is used.
 
See Also
CreateAnaProp
 
Samples
 
C++
 
// Insert the first detail line of a new proposal. Some data are explicitly given, for all other data the programmatorical default should be used.
VARIANT vEmpty;
vEmpty.vt = VT_EMPTY;

pAnaProp->PrepareProposal (paInsert);

// Fill the necessary header data

pAnaProp->InsertDetailSel (-1, 10.0, vEmpty, "UNIT", "KIND", vEmpty, vEmpty);

pAnaProp->WriteProposal (rmFullReport);

C#
 
// Insert the first detail line of a new proposal. Some data are explicitly given, for all other data the programmatorical default should be used.
oAnaProp.PrepareProposal (ePrepareAction.paInsert);

// Fill the necessary header data

oAnaProp.InsertDetailSel (-1, 10.0, null, "UNIT", "KIND", null, null);

oAnaProp.WriteProposal (eReportMode.rmFullReport);

VBS
 
' Insert the first detail line of a new proposal. Some data are explicitly given, for all other data the programmatorical default should be used.
Call oAnaProp.PrepareProposal(paInsert)

' Fill the necessary header data

Call oAnaProp.InsertDetailSel(-1, 10.0, Empty, "UNIT", "KIND", Empty, Empty)

Call oAnaProp.WriteProposal(rmFullReport)

VB.NET
 
' Insert the first detail line of a new proposal. Some data are explicitly given, for all other data the programmatorical default should be used.
oAnaProp.PrepareProposal(ePrepareAction.paInsert)

' Fill the necessary header data

oAnaProp.InsertDetailSel(-1, 10.0, Nothing, "UNIT", "KIND", Nothing, Nothing)

oAnaProp.WriteProposal(eReportMode.rmFullReport)