Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NEED VERY URGENT HELP, pls.INDICATOR

Featured Replies

:bang:

How to split one space in SURNAMEName field which is not spitted?

Have a problem in database. I have lot of records with people

surname & name bat in format: SURNAMEName

MATICMato

MIKICMirko

NODILOIvan

RUBESAAleksndar

KALINICIvan

PRSODado and so on ...

[color:red]not spitted. I try out and try out bat don’t find the way to split them in format SURNAME Name.

Only [color:blue]INDICATOR which I have is that all SURNAME characters are UPPER LETERS (uppercase) and Name characters only first letter is uppercase.

Need suggestion how to split this field that [color:red]between SURNAME and Name i get (put) [color:red]one space (that field look like): SURNAME Name.

MATIC Mato

MIKIC Mirko

NODIL OIvan

RUBESA Aleksndar

KALINIC Ivan

PRSO Dado and so on ...

(calculation, Custom function, Script or : )

Platform OS x 10.4.6 fmp 8.03

Thanks in advance

:qwery: INO

Try:

Let ( [

newText = text & "§" ;

lowerPart = Filter ( newText ; "abcdefhijklmnopqrstuvwxyz§" ) ;

pos = Position ( newText ; lowerPart ; 1 ; 1 ) - 2 ;

surname = Proper ( Left ( text ; pos ) ) ;

name = Right ( text ; Length ( text ) - pos )

] ;

surname & " " & name

)

Edited by Guest
Fixed a bug to deal with name contained in surname

Very nice calculation comment. :clap:

I think that the only change that INO needs to make is to change the Proper to UPPER to get what he asked for.

Lee

Edited by Guest

  • Author

:worship: comment

WORKS ...!!!!

thanks a lot :thankyou:

Ino

:thumbdown: Lee, I try to do that, but problem is in first letter in Name (MARICMarko), because in that case only first letter in field is Uppercase,means that also in Name all letters are lowercase (Maricmarko ) but any how comment solved my problem.

bestR.

:hello:

Ino

Hi INO,

Glad you're happy.

I just wanted to confirm that we were talking apples and apples here.

this Calculation

Let ( [

lowerPart = Filter ( FullName ; "abcdefhijklmnopqrstuvwxyz" ) ;

pos = Position ( FullName ; lowerPart ; 1 ; 1 ) - 2 ;

surname = [color:blue]Upper ( Left ( FullName ; pos ) ) ;

name = Right ( FullName ; Length ( FullName ) - pos )

] ;

surname & " " & name

)

Produces this

MARIC Marko

instead of

Maric Marko

Lee

I have edited the calc slightly to fix a problem with cases where the name is contained in surname, such as IVANOVIvan.

  • Author

:thumbup: Hi Lee,

once again Thank you for + support.

When I try to solve the problem I try to use Upper and Lower format and as your replay was I understood that you mean on that.

Normally when I solve the problem with comment suggestion (calc) I exactly do what you suggest.

Thanks for as usual your care

Ino

Well, your surnames already ARE in upper case. So if you want to keep them that way, all you need to do is remove the Proper() part in the surname definition.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.