Matt Klein Posted February 13, 2002 Share Posted February 13, 2002 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? Link to comment Share on other sites More sharing options...
danjacoby Posted February 13, 2002 Share Posted February 13, 2002 I never use the "Clear" command; it has proven horribly unreliable. SetField[Fieldname, ""] does the trick very nicely. Link to comment Share on other sites More sharing options...
Matt Klein Posted February 13, 2002 Author Share Posted February 13, 2002 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 ] Link to comment Share on other sites More sharing options...
Vaughan Posted February 13, 2002 Share Posted February 13, 2002 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! Link to comment Share on other sites More sharing options...
BobWeaver Posted February 13, 2002 Share Posted February 13, 2002 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. Link to comment Share on other sites More sharing options...
Matt Klein Posted February 13, 2002 Author Share Posted February 13, 2002 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! Link to comment Share on other sites More sharing options...
Vaughan Posted February 14, 2002 Share Posted February 14, 2002 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. Link to comment Share on other sites More sharing options...
Matt Klein Posted February 14, 2002 Author Share Posted February 14, 2002 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!! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 8298 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 accountSign in
Already have an account? Sign in here.
Sign In Now