Skip 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.

what's wrong with that case

Featured Replies

  • Author

Case(

mod(char1+8;26)=1, dsd_code = dsd_code & "A",

mod(char1+8;26)=2, dsd_code = dsd_code & "B",

)

I have to do a calculation to know what letter correspond to the number... I get the "an operator (e.g. +, -, ...) is expected here" message... why!?

I also tried multiple if, like:

If( Mod( char1 + 8 ; 26 )=1 ; dsd_code & "A"; "")

If( Mod( char1 + 8 ; 26 )=2 ; dsd_code & "B"; "")

If( Mod( char1 + 8 ; 26 )=3 ; dsd_code & "C"; "")

I get the same error... anyone can help to go through that step?!?

Case(

mod(char1+8;26)=1, dsd_code = dsd_code & "A",

mod(char1+8;26)=2, dsd_code = dsd_code & "B",

)

I have to do a calculation to know what letter correspond to the number... I get the "an operator (e.g. +, -, ...) is expected here" message... why!?

I also tried multiple if, like:

If( Mod( char1 + 8 ; 26 )=1 ; dsd_code & "A"; "")

If( Mod( char1 + 8 ; 26 )=2 ; dsd_code & "B"; "")

If( Mod( char1 + 8 ; 26 )=3 ; dsd_code & "C"; "")

I get the same error... anyone can help to go through that step?!?

Strange I copy and paste both your examples into an FMP file, replace your fields with fields in my table, no errors. When you get the error what part of the calculation is highlighted as the error?

Strange I copy and paste both your examples into an FMP file, replace your fields with fields in my table, no errors. When you get the error what part of the calculation is highlighted as the error?

Case(

mod(char1+8;26)=1, dsd_code & "A",

mod(char1+8;26)=2, dsd_code & "B",

)

The syntax for Case is

Case ( test1, result1, test2, result2,...)

The result dsd_code = dsd_code & "A" is not really a result; the "dsd_code = dsd_code" is really a test.

Part of the problem is that you have not told us what the calculation field's name is. A calculation field cannot modify another field, so I have to assume that the field is dsd_code. In this case the expression should be

Case(

mod(char1+8;26)=1, dsd_code & "A",

mod(char1+8;26)=2, dsd_code & "B"

)

There should be no comma after the last expression.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.