on 09-11-2015 4:22 AM
Hi Experts,
Could you please help me achieving in below logic.
Take last three numbers and use that as the item number.
Ex 1: If last three begin with zero, I.e., 050, then just make 50 the item number.
Ex 2: 11th item would be number 110 since last three characters would be 110
0101 = 010
0201 = 020
0301 = 030
Thanks,
MR
Hi All,
Thanks for quick reply I am trying the above suggestions.
Will get you back once done.
Thanks,
MR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HELLO .
Suppose you have 0010 first item no and 0150 second item no .
Data : item_no(4) ,
swat(3) .
item_no = 0010.
if item_no+1(1) = '0' .
swap = item_no+2(2) .
else .
swap = item_no+1(3) .
endif.
After the if condition you will have your correct item number into the swap variable length 3 characters .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
take a substring from length -3 to length and then apply abs function on it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.