2010 Jun 02 12:01 PM
Hi,
can you tell me how to solve this.
i have a variable
a=80010010002009
I want to seperate '8001001000' into 1 variable and '2009' into another varibale.
Kind Regards,
Hi,
can you tell me how to solve this.
i have a variable
a=80010010002009
I want to seperate '8001001000' into 1 variable and '2009' into another varibale.
Kind Regards,
2010 Jun 02 12:04 PM
Perhaps you could describe the requirements for the split, e.g., number of characters, etc. There are (probably) a lot of postings and other materials about string operations (if that's really a string and not a char field). Suggest you search the forums.
2010 Jun 02 12:05 PM
2010 Jun 02 12:05 PM
If the offset lengths are fixed, then it is a question of using offsets. Or is there some catch in your requirement which you have not mentioned ?
2010 Jun 02 12:06 PM
Hi
Use this
a=80010010002009.
b = a(10). it will place 8001001000 in b
c = a+10(4). it will place 2009 in c
<< Begging for po1nts removed >>
Regards,
Uma
Edited by: Rob Burbank on Jun 2, 2010 9:38 AM
2010 Jun 02 2:39 PM
Moderator message - Please do not ask or answer basic questions - thread locked Rob
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |