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.

Featured Replies

Hello. My problem is something that should be a simple thing. I just need a calculation to give me the next letter from the one endeared on an other field. "a" on the first field, "b" the result of the calculation. I have tried "substitute" and "case" giving all the possible solutions, but I don't like it. Is there an other way?

Try something like:

Let ( [

alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ;

pos = Position ( alpha ; Character ; 1 ; 1 )

] ;

Middle ( alpha ; pos + 1 ; 1 )

)

  • Author

Thank you very much. It was really helpful. I actually wanted to make a self join relationship that shows on a portal, the names starting with the letters on a global field. This was really easy (Table1:G_name <= Table2:Name), but it showed all the names from that point to the last. I wanted an "AND" relationship that finds the names from the next letter and upwards (Table1:G_name_low > Table2:Name)but I couldn't find the way to calculate the field G_Name_Low. The hard part was the one you helped. Thanks a lot..

Shouldn't there be a Propper( in there?

Code( and Char( does the same under fm10:

Char(Code("a")+1) gives b

--sd

names starting with the letters on a global field. This was really easy (Table1:G_name <= Table2:Name), but it showed all the names from that point to the last.

You need to study this template:

http://www.newcenturydata.com/downloads/filter.zip

--sd

  • Author

No need of Proper. Everything is in capital letters. I show the demo. I'll study it. But I thing this is easier:

Case(

G_Name = " "; "Ё";

Let([

char = Right (G_Name ; 1);

word = Left (G_Name ; Length (G_Name)-1);

all = "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩЁ";

pos = Position(all;char;1;1);

next = Middle(all;pos+1;1)

];

word & next)

)

This is the G_Name_Next field. Sorry for the Greek. It's a Greek program anyway :

Just had a problem with the last letter of the alphabet, but solve it using the next letter of unicode. And " " and "Ё" is used on global fields to list all the names.

I wanted an "AND" relationship that finds the names from the next letter and upwards

Wouldn't the same thing be accomplished simply by making the relationship < instead of ≤ ?

Shouldn't there be a Propper( in there?

What for? Position() is not case-sensitive.

Create an account or sign in to comment

Important Information

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

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.