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.

Set Field and Clear difference?

Featured Replies

Is there any difference between using:

SetField[Field, ""]

and

Clear[Field]

except that the field need to be on the current layout to use Clear?

I never use the "Clear" command; it has proven horribly unreliable. SetField[Fieldname, ""] does the trick very nicely.

  • Author

quote:

Originally posted by danjacoby:

I never use the "Clear" command; it has proven horribly unreliable. SetField[Fieldname, ""] does the trick very nicely.

I agree with you. The only time I use Clear is for clearing date or time fields. The only reason I asked is because I seen some posts in the Forum that suggested otherwise. I wanted to be sure that I didn't miss something.

[ February 13, 2002, 02:21 PM: Message edited by: MattSBCNE ]

The way to 'clear"date and time fields is

Set Field [ Datefield, TextToDate("") ]

Set Field [ Timefield, TextToTime("") ]

I know it seems funnym but "" is text!

The main reason for using the Set Field command is that it will work no matter whether the field is on the current layout or not. Commands like Paste, Insert and Clear will only work if the field is on the current layout and you also have to have the "allow entry into field" option selected in the field format dialog. So, it's just a lot simpler and safer to use the Set Field command.

  • Author

quote:

Originally posted by Vaughan:

The way to 'clear"date and time fields is

Set Field [ Datefield, TextToDate("") ]

Set Field [ Timefield, TextToTime("") ]

I know it seems funnym but "" is text!

Hey! That's a neat trick!

I wish I could claim credit for that, but I cannot. It's from the "Tips from Tech Support" menu in the New Database dialog box (the one that appears with the list of Templates). A couple of other neat bits of info in it too.

  • Author

I'm tellin' ya. I have been developing solutions with FileMaker for nearly 10 years and consider myself to an advanced user. But, I never stop finding/learning new things about it.

I LOVE THIS PROGRAM!!!!!

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.