Dodecahedron
Technical User
Hi,
I am using CR10.
I have a field which contains data in the following format
Mr & Mrs Smith
Mr Waddle
Ms King
I am looking to extract the title part i.e. Mr & Mrs, Mr, Ms in the example above
To get the surname I have used
stringVar array SplitInput := split({fieldname});
numberVar WordCount := ubound(SplitInput);
join(SplitInput[11 to WordCount])
To try and get the title I have used
stringVar array SplitInput := split({fmsaddr.fm_salute});
numberVar WordCount := ubound(SplitInput);
join(SplitInput[1 to WordCount - 1])
I get the error message the a subscript must be between 1 and the size of the array.
Can anybody help with the tile part
Thanks
I am using CR10.
I have a field which contains data in the following format
Mr & Mrs Smith
Mr Waddle
Ms King
I am looking to extract the title part i.e. Mr & Mrs, Mr, Ms in the example above
To get the surname I have used
stringVar array SplitInput := split({fieldname});
numberVar WordCount := ubound(SplitInput);
join(SplitInput[11 to WordCount])
To try and get the title I have used
stringVar array SplitInput := split({fmsaddr.fm_salute});
numberVar WordCount := ubound(SplitInput);
join(SplitInput[1 to WordCount - 1])
I get the error message the a subscript must be between 1 and the size of the array.
Can anybody help with the tile part
Thanks