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.

When and Why use the "Choose" function ?

Featured Replies

Hi all,

I'm very curious to know who is using this function. Looking around on the posts here, I could rarely find any reference to this function.

But, it seems to me that it could be used more often for validation and evaluation.

Any example around of its concrete use ?

Thanx

I use it very often for multi-state buttons, graphics an yes/no situations.

choose(<buttonfield>;"",explanation1;explanation2,explanation3..)

choose(status(currentportalrow);"";graphic1,graphic2;graphic3;..)

it often saves me an auxiliary table or relation when working with (short) lists, although i often prefer to do this with indexed repeating fields* as they are more flexible.

indexed repeating fields:

repetition index field field 1 field2

------------------------------------------------------------

#1 01 val1.1 val2.1

#2 02 val1.2 val2.2

indexed repeating fields can be used for converting fixed length or pipe ("|") separated data into repeats for later retrieval. It saves concenated Middle() and Position() Statements. Or use it to quickly build Clairrvoyance (Type-Ahead keys of arbitrary lenght.

Sample follows shortly.

  • Author

Thanks for replying cjaeger,

I'm still little confused though. Sure the sample would help me understand it better.

Hi Ugo,

JMO has a demo file on his site that compares these two funtions, and also times the them in action.

File Name is "Case vs. Position"

www.databasepros.com

HTH

Lee

smile.gif

  • Author

Hi Lee,

Thanx, I've seen it already and surely the Position is quicker than the Case....

But I'm having difficulties understanding the Choose function....

Reading the FM Help B)

Choose(Result>= 90, "Excellent", R

Here is a article that may help if you haven't read it yet.

Case vs Choose

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.