Venice
Year::GetTrnStat
 
Gets the transfer status.
 
enum eTrnStat GetTrnStat (
    enum eTrnType eTrnType,
    VARIANT* pvSysNum
)
 
Parameters
eTrnType
[in] A value of the 'eTrnType' enumeration.
pvSysNum
[out] Returns a VARIANT, subtype LONG, containing 0 if no transfer was done (return value is equal to tsNone) or the system number of the last entry on the given type (parameter eTrnType) that was transferred (return value is equal to tsPartial or tsComplete).
 
Return value
A VARIANT, subtype BYTE containing the transfer status (eTrnStat-enumeration value) of the financial year.
 
See Also
CreateYearContext
 
Samples
 
C++
 
// Get the current status of the supplier transfer
VARIANT vSysNum;
if (pYear->GetTrnStat (ttSuppl, &vSysNum) == tsNone)
{
    // No supplier transfer was done yet
}
else
{
    // Process vSysNum
}

C#
 
// Get the current status of the supplier transfer
object oSysNum;
if (oYear.GetTrnStat (eTrnType.ttSuppl, out oSysNum) == eTrnStat.tsNone)
{
    // No supplier transfer was done yet
}
else
{
    // Process oSysNum
}

VBS
 
' Get the current status of the supplier transfer
Dim oSysNum
If oYear.GetTrnStat(ttSuppl, oSysNum) = tsNone Then
    ' No supplier transfer was done yet
Else
    ' Process oSysNum
End If

VB.NET
 
' Get the current status of the supplier transfer
Dim oSysNum As Object
If oYear.GetTrnStat(eTrnType.ttSuppl, oSysNum) = eTrnStat.tsNone Then
    ' No supplier transfer was done yet
Else
    ' Process oSysNum
End If