Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
EarnProject::yearsCheck Method (int, int, int, int)

Checks for first and last year of earnings within bounds.

C++
static void yearsCheck(
    int ibegint, 
    int ibegin1t, 
    int iendt, 
    int iend1t
);
Parameters 
Description 
int ibegint 
First year of earnings in backward projection period. 
int ibegin1t 
Last year of earnings in backward projection period. 
int iendt 
Last year of earnings in forward projection period. 
int iend1t 
First year of earnings in forward projection period. 
Exceptions 
Description 
PiaException of type PIA_IDS_END1 if first year of earnings in forward projection period is before last year of earnings in backward projection period; of type PIA_IDS_END3 if first year of earnings in forward projection period is after last year of earnings in forward projection period; of type PIA_IDS_END4 if the total number of years of earnings is greater than the maximum allowed (MAXYRS); of type PIA_IDS_END1 if last year of earnings is before 1937; of type PIA_IDS_END2 if last year of earnings is after maximum year allowed. 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!