2008 Jul 17 6:23 AM
Hallo Every one,
Could you please let me know how to split or remove the First Letter or Alphanumeric Character from the value of a filed.
For instance Let us say:
A123456,here I need to remove the A letter and want to dispaly the above mentioned with out 'A'. as 123456 alone. on the input as A123456 as some Input.
Please help me.
Regards.
2008 Jul 17 6:28 AM
2008 Jul 17 6:26 AM
hi
you can do
data: var(20) type c value 'A123456'.
write: var+1.
regards
Aditya
2008 Jul 17 6:28 AM
2008 Jul 17 6:29 AM
Hi,
Take two charcater varibale like input value.By using offset move total value with out first letter.
2008 Jul 17 6:30 AM
Try :
SHIFT text BY 1 PLACES LEFT IN CHARACTER MODE.
Here text is ur variable name.
Regards,
Joy.
2008 Jul 17 6:30 AM
2008 Jul 17 6:30 AM
Hi Johny,
you can something like:
length = strlen( field ).
length = length - 1.
field = field+1(length).
With luck,
Pritam.
2008 Jul 17 7:27 AM
Hi Pritam ,
The solution has solved my Issue.
Thank you very much.
But the Points That I want to reward are 10.Here the option has been disabled.
So,I regret for this.
But Thank you once again.
Regards,
Johny.
2008 Jul 17 6:40 AM
Hi,
Shifting a String by a Given Number of Positions
SHIFT <c> [BY <n> PLACES] [<mode>].
This statement shifts the field <c> by <n> positions. If you omit BY <n> PLACES, <n> is interpreted as one. If <n> is 0 or negative, <c> remains unchanged. If <n> exceeds the length of <c>, <c> is filled out with blanks. <n> can be variable.
Data:field1(7) type c value 'A123456'.
Shift field1 by 1 places left.
Mode can be left,right and circular.
Regards,
Sujit
2008 Jul 17 7:29 AM
Hi Sujit,
This has solved my Issue.You have given me the full explanation.Many Thanks for that.
Thank you much.
Regards,
Johny