Date less than 1950




In T24 by default the Date type field will not allow entering a date which is older than the year 1950. In case if you enter a date 19490203 in a Date type field  the system will throw error "YEAR CANNOT PRECEDE 1950"

To overcome this the field 2 of the T array of the field in subject should be set to 1000.

An example is given below.

fieldName = 'XX<FIELD1'
fieldLength = '35.1'
fieldType = 'D'
fieldType<2> = 1000
CALL Table.addFieldDefinition(fieldName, fieldLength, fieldType, neighbour)

After defining the date field in this fashion the system will allow dates of years from 1000 to 2049

Comments

Popular posts from this blog

Current Variables in T24

All accounting entries of an T24 account

SQL queries in JBase