Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Splitting text in FileMaker

Tags:

filemaker

This may be a pretty easy question but I'm having some trouble with it. I have some information in a text field that logs a UserID in the form of firstname.lastname . What I need for reporting purposes is to split that data into 2 new fields (created as FirstName and LastName respectively). I've tried replacing field contents with a calculation using LeftWords and RightWords but it unfortunately did not work: LeftWords(Attendance::UserID; 1) for first name and RightWords(Attendance::UserID; 1) for last name. What it gave me was the UserID again. I think what is throwing me off is the 'period' that separates the UserID. Any suggestions? I've looked up a number of ways of splitting text, but most have been splitting text separated by a space...

like image 526
wchsTech4 Avatar asked Aug 14 '26 07:08

wchsTech4


1 Answers

For first name:

Left ( Attendance::UserID ; Position(Attendance::UserID; "."; 1; 1)-1 )

For last name:

Right( Attendance::UserID; Length(Attendance::UserID) - Position(Attendance::UserID; "."; 1; 1) )
like image 92
Jesse Barnum Avatar answered Aug 24 '26 11:08

Jesse Barnum



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!