Venice
AnCnt::GetBalance
 
Gets the balance of this Analytical Centre Account.
 
DOUBLE GetBalance (
    BSTR bsCentre,
    BSTR bsKind
)
 
Parameters
bsCentre
[in] The analytical centre 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 centre.
 
Remarks
If bsCentre is left blank, then the balance for all analytical centres is returned.
If bsKind is left blank, then the balance for all analytical kinds is returned.
The amount that is not distributed analytically is excluded from the returned balance.
 
See Also
CreateAnCnt
GetBalance
 
Samples
 
C++
 
// Get the balance of the analytical centre with code = 'CENT' combined with all analytical kinds
double lfBalance = pAnCnt->GetBalance ("CENT", "");

// Get the balance of the analytical centre with code = 'CENT' combined with the analytical kind 'KIND'
lfBalance = pAnCnt->GetBalance ("CENT", "KIND");

// Get the balance of all analytical centres combined with the analytical kind 'KIND'
lfBalance = pAnCnt->GetBalance ("", "KIND");

// Get the balance of all analytical centres combined with all analytical kinds
lfBalance = pAnCnt->GetBalance ("", "");

C#
 
// Get the balance of the analytical centre with code = 'CENT' combined with all analytical kinds
double lfBalance = oAnCnt.GetBalance ("CENT", "");

// Get the balance of the analytical centre with code = 'CENT' combined with the analytical kind 'KIND'
lfBalance = oAnCnt.GetBalance ("CENT", "KIND");

// Get the balance of all analytical centres combined with the analytical kind 'KIND'
lfBalance = oAnCnt.GetBalance ("", "KIND");

// Get the balance of all analytical centres combined with all analytical kinds
lfBalance = oAnCnt.GetBalance ("", "");

VBS
 
Dim lfBalance

' Get the balance of the analytical centre with code = 'CENT' combined with all analytical kinds
lfBalance = oAnCnt.GetBalance("CENT", "")

' Get the balance of the analytical centre with code = 'CENT' combined with the analytical kind 'KIND'
lfBalance = oAnCnt.GetBalance("CENT", "KIND")

' Get the balance of all analytical centres combined with the analytical kind 'KIND'
lfBalance = oAnCnt.GetBalance("", "KIND")

' Get the balance of all analytical centres combined with all analytical kinds
lfBalance = oAnCnt.GetBalance("", "")

VB.NET
 
Dim lfBalance As Double

' Get the balance of the analytical centre with code = 'CENT' combined with all analytical kinds
lfBalance = oAnCnt.GetBalance("CENT", "")

' Get the balance of the analytical centre with code = 'CENT' combined with the analytical kind 'KIND'
lfBalance = oAnCnt.GetBalance("CENT", "KIND")

' Get the balance of all analytical centres combined with the analytical kind 'KIND'
lfBalance = oAnCnt.GetBalance("", "KIND")

' Get the balance of all analytical centres combined with all analytical kinds
lfBalance = oAnCnt.GetBalance("", "")