Venice
Dossier::FindFirstOpenYear
 
Finds the first open financial year for the given transfert type.
 
SHORT FindFirstOpenYear (
    enum eTrnType eTrnType
)
 
Parameters
eTrnType
[in] A value of the 'eTrnType' enumeration.
 
Return value
A SHORT containing the first open financial year if one exists for the given transfert type, otherwise 0.
 
See Also
CreateDossierContext
 
Samples
 
C++
 
// Find the first open financial year for which the general transfer has not been executed yet
short sYear = pDossier->FindFirstOpenYear (ttGeneral);

C#
 
// Find the first open financial year for which the general transfer has not been executed yet
short sYear = oDossier.FindFirstOpenYear (eTrnType.ttGeneral);

VBS
 
' Find the first open financial year for which the general transfer has not been executed yet
Dim sYear
sYear = oDossier.FindFirstOpenYear(ttGeneral)

VB.NET
 
' Find the first open financial year for which the general transfer has not been executed yet
Dim sYear As Short
sYear = oDossier.FindFirstOpenYear(eTrnType.ttGeneral)