Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

When and Why use the "Choose" function ?


This topic is 7894 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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

This topic is 7894 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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