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.

Expression Evaluation in Labels

Featured Replies

It would really help to be able to evaluate expressions directly within labels like you can do in access. It would save a lot of unecessary field creation.

The simplest example:

=Get(RecordNumber) & " of " & Get(FoundCount)

Can you explain what this wish means, what kind of labels is this ?

--sd

  • Author

Just a label that can evaluate an expression directly on a layout.

E.g. if you type =Left(MyField ; 1) It will display "A" where my field contains "Apple"... or =If(Length(MyField)> 4 ; Left(MyField ; 4) & "..." ; MyField) -- Something you might use often on a report which requires an entirely new field to be defined.. As opposed to having to define a calculation field. A very large portion of the fields in my database are calculation fields designed specifically for appearance, it would be easier if i didn't have to create them in the first place.

Maybe the Evaluate() function in a calc would suit you. You'd need one text field and the calc, but they could be reused for different purposes.

I had the same thoughts as Mike, Investigate this template ...alright it uses one field - but behaves accoding to which layout it's called from!

By stuffing it in a CF is it pretty portable!

--sd

pling.zip

  • Author

You know what, i was only JUST thinking about using evaluate right before i clicked the link to come in here : . It's better i guess but... Still have to create multiple fields if i want to evaluate within multiple labels on the same layout... BUT it's better than nothing i guess.

So you guys don't think it would be useful?

Oh yes some kind of expansion of @@, ::, ||, // would be welcome indeed.

--sd

The best thing, I think, would be to be able to type "$$variable" on the layout and have it evaluated. The engine for this is already there somewhere (e.g. Data Viewer).

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.