Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

assigning value

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

lval = loc_var_range-low(3).

lval = lval - 1.

concatenate lval loc_var_range-low+4(4) into loc_var_range.

3 REPLIES 3

Former Member
0 Kudos

lval = loc_var_range-low(3).

lval = lval - 1.

concatenate lval loc_var_range-low+4(4) into loc_var_range.

0 Kudos

how to concatenate? and its gonna be 5(4) or 4(4) as 2 in 2006 is 5th character?

0 Kudos

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.