i need to use an user defined function.. can any body give me the exact code.. for doing that.. because.. my requiremnt is i have one source struture and multiple receivers..
If the Nmae starts with Mr means.. those perosons details will goes to MALE RECEIVER..
IF the name starts with Ms then those details will moves to FEMALE RECEIVERS..
for this i'm useing an user defined in that i wrote this code. but it's not working... so, plz check this.. and correct it..
if( a<i>.substring(0,2).equals("Mr") && mr==0)
result.addValue("<b>MALE RECEIVER</b>"); ****my first receiver
if( a<i>.substring(0,2).equals("Ms") && ms==0)
result.addValue("<b>FEMALE RECEIVER</b>"); ****my second receiver
for helpful answers will be rewarded