09-28-2006 5:43 PM
i am reading fiscal year/period (format - 010/2006) into Loc_var_range. after that i am reading var1(3) i.e. 010 . Now i have to subtract -1 from it i e. 009/2006
now i have to store that changes back into l_s_range.
i am trying this:
l_s_range-low(3) = (l_s_range-low(3))-1.
now what abt 2006? i have to assign that value also to l_s_range..how to do it?
Basically i have to assign 009/2006 into l_s_range. and loc_var_range is having value 010/2006.
09-28-2006 5:46 PM
lval = loc_var_range-low(3).
lval = lval - 1.
concatenate lval loc_var_range-low+4(4) into loc_var_range.
09-28-2006 5:46 PM
lval = loc_var_range-low(3).
lval = lval - 1.
concatenate lval loc_var_range-low+4(4) into loc_var_range.
09-28-2006 5:49 PM
how to concatenate? and its gonna be 5(4) or 4(4) as 2 in 2006 is 5th character?
09-28-2006 6:05 PM
4(4) is correct.
The first character is read as 0(1).
I.E. from 0th Position read 1 character.
But for example check that if the month is coming as 001.
While subtracting -1 it will become 000. So you have to check when it is coming as 001 you have give it as 012.
Prakash.