rohan_rege
13th September 2002, 00:03
i am reading a field containing a date value from a ascii file
eg. of a value is 09011999
i have to insert this value into a table field having domain tfgld.date
i use the foll. to try to do it :
num.day = lval(bfdt(3;2))
num.month = lval(bfdt(1;2))
num.year = lval(bfdt(5;4))
tfgld998.bfdt = date.to.num(num.year, num.month, num.day)
where
bfdt contains the date in string format , as it is extracted from the ascii file i.e 09011999
when i run the session it gives a error
Error 205 OUT OF RANGE
i tried debugging .......and diff. ways of trying to achieve the same thing as above .but no luck
Regards,
Rohan
eg. of a value is 09011999
i have to insert this value into a table field having domain tfgld.date
i use the foll. to try to do it :
num.day = lval(bfdt(3;2))
num.month = lval(bfdt(1;2))
num.year = lval(bfdt(5;4))
tfgld998.bfdt = date.to.num(num.year, num.month, num.day)
where
bfdt contains the date in string format , as it is extracted from the ascii file i.e 09011999
when i run the session it gives a error
Error 205 OUT OF RANGE
i tried debugging .......and diff. ways of trying to achieve the same thing as above .but no luck
Regards,
Rohan