Skip to Content
0
Former Member
Dec 05, 2008 at 04:55 AM

splitting a source filed

23 Views

hi

i have a source structure having a field P_NAME and target structure having two filed ie F_NAME and L_NAME.

My requiremet is in i want to split the data that comes to P_NAME into the respective target filed.

for example: P_NAME = John Smith

now in

F_NAME = Jhon

L_NAME = Smith

with the code below i am able to populate F_NAME = John

but i am not able to do the same for L_SMITH.

int i = 0;

String temp = a[0].toString();

i = temp.indexOf(';');

result.addValue(temp.substring(0,i));

Regards

Kasturika