|
Gets the balance of this Analytical Account. |
|
 |
DOUBLE GetBalance ( enum eAnaEntType eAnaEntType, BSTR bsAccount, BSTR bsKind ) |
|
|
Parameters | eAnaEntType | [in] A value of the 'eAnaEntType' enumeration. | bsAccount | [in] The analytical account of which you want to know the balance. | bsKind | [in] The analytical kind of which you want to know the balance. | | Return value |
A DOUBLE containing the balance of the given analytical account. | | Remarks |
 | If bsAccount is left blank, then the balance for all analytical accounts is returned. |
 | If bsKind is left blank, then the balance for all analytical kinds is returned. |
|
|
See Also |
|
|
|
Samples |
|
 |
C++ |
|
// Get the balance of the analytical centre with code = 'CENT' combined with all analytical kinds
double lfBalance = pAnAcc->GetBalance (aetCent, "CENT", "");
// Get the balance of the analytical unit with code = 'UNIT' combined with the analytical kind 'KIND'
lfBalance = pAnAcc->GetBalance (aetUnit, "UNIT", "KIND");
// Get the balance of all analytical centres combined with the analytical kind 'KIND'
lfBalance = pAnAcc->GetBalance (aetCent, "", "KIND");
// Get the balance of all analytical units combined with all analytical kinds
lfBalance = pAnAcc->GetBalance (aetUnit, "", "");
|
|
 |
C# |
|
// Get the balance of the analytical centre with code = 'CENT' combined with all analytical kinds
double lfBalance = oAnAcc.GetBalance (eAnaEntType.aetCent, "CENT", "");
// Get the balance of the analytical unit with code = 'UNIT' combined with the analytical kind 'KIND'
lfBalance = oAnAcc.GetBalance (eAnaEntType.aetUnit, "UNIT", "KIND");
// Get the balance of all analytical centres combined with the analytical kind 'KIND'
lfBalance = oAnAcc.GetBalance (eAnaEntType.aetCent, "", "KIND");
// Get the balance of all analytical units combined with all analytical kinds
lfBalance = oAnAcc.GetBalance (eAnaEntType.aetUnit, "", "");
|
|
 |
VBS |
|
Dim lfBalance
' Get the balance of the analytical centre with code = 'CENT' combined with all analytical kinds
lfBalance = oAnAcc.GetBalance(aetCent, "CENT", "")
' Get the balance of the analytical unit with code = 'UNIT' combined with the analytical kind 'KIND'
lfBalance = oAnAcc.GetBalance(aetUnit, "UNIT", "KIND")
' Get the balance of all analytical centres combined with the analytical kind 'KIND'
lfBalance = oAnAcc.GetBalance(aetCent, "", "KIND")
' Get the balance of all analytical units combined with all analytical kinds
lfBalance = oAnAcc.GetBalance(aetUnit, "", "")
|
|
 |
VB.NET |
|
Dim lfBalance As Double
' Get the balance of the analytical centre with code = 'CENT' combined with all analytical kinds
lfBalance = oAnAcc.GetBalance(eAnaEntType.aetCent, "CENT", "")
' Get the balance of the analytical unit with code = 'UNIT' combined with the analytical kind 'KIND'
lfBalance = oAnAcc.GetBalance(eAnaEntType.aetUnit, "UNIT", "KIND")
' Get the balance of all analytical centres combined with the analytical kind 'KIND'
lfBalance = oAnAcc.GetBalance(eAnaEntType.aetCent, "", "KIND")
' Get the balance of all analytical units combined with all analytical kinds
lfBalance = oAnAcc.GetBalance(eAnaEntType.aetUnit, "", "")
|
|