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.

clear function only on lay-out?

Featured Replies

In a start-up script I have some globals which I initialise, by clearing them. I use the command Clear [select,"globalfield"]

I found out that the fields are not cleared. I suspect, that the clear command only can be used when the actual field is on a lay-out, or am I wrong?

When this is so, of course there are workarounds, using Setfield[global,""], but with date-fields, to empty them completely, (to avoid that question mark in the field) I know of no better way then Clear..

(edited later)

In the meantime I found out that the clear command indeed does not work when the field to be cleared is not present on a lay-out.

For clearing date-fields in an effective way (not popping up the lay-outs where the date fields are on) I know of no better way then defining an date-global, and keep it empty, and then use

Set field[datefield;empty_date_global]

Any suggestions to this are welcome.

Harry

(one of the many Harry's contributing to this board..)

Try using

Set field[datefield, TextToDate("")]

SetField requires that the data to be set is in the same format as the destination field, so Date and Time fields are the usual suspects here... TextToDate ("") and TextToTime("") in the SetField statements will "clear" them for you. If you use Clear, you will get ? for date and 0:00:00 for time.

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.