Newbies jdrockweller Posted July 4, 2004 Newbies Posted July 4, 2004 I am having the darndest time trying to script a button which will delete the contents of a container field. I can manually clear the contents by simply clicking on the field and pressing backspace. But when I try to script a button to do this seemingly simple task, the field will not clear. I have tried such script steps as "clear", "set field" to a null value, "insert calculated result" to a null value, etc. which I use to delete the contents of other non-container type fields. None of them are working. I've double checked that I am running the correct script, referenced the correct field, etc. Someone please tell me that I am not losing my mind... and suggest how I might accomplish this feat.
Newbies Terry Williams Posted July 4, 2004 Newbies Posted July 4, 2004 Use the SetField Function, such as SetField(Picture,"")
Newbies jdrockweller Posted July 4, 2004 Author Newbies Posted July 4, 2004 No such luck. Thanks for the reply Terry, but unfortunately it's not working for me. Set Field(File,"") is, indeed, usually the way I clear a field, but it seems to do nothing in this case. Have you tested an example and had it work properly for you?
Newbies jdrockweller Posted July 4, 2004 Author Newbies Posted July 4, 2004 Ah, I got it to work now. Thanks for the tip!
Recommended Posts
This topic is 7447 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