Application Development and Automation 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: 
Read only

how to seperate two values from a string

Former Member
0 Likes
670

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,

5 REPLIES 5
Read only

Former Member
0 Likes
646

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.

Read only

0 Likes
646

hi,

its a field value.i want to separate this

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
646

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 ?

Read only

Former Member
0 Likes
646

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

Read only

Former Member
0 Likes
646

Moderator message - Please do not ask or answer basic questions - thread locked Rob