June 23, 200025 yr Newbies Is there a way to delete all entries in a repeating field using scripting? I've tried, and have only been able to delete the first entry. Help! D.T.
June 23, 200025 yr quote: Originally posted by DirtyThief: Is there a way to delete all entries in a repeating field using scripting? I've tried, and have only been able to delete the first entry. Help! D.T. Not with a single step. You could delete all repetitions of the field using the Set Field command for each repetition. ------------------ =-=-=-=-=-=-=-=-=-=-=-=-= Kurt Knippel Senior Filemaker Developer http://www.inthescene.com mailto:[email protected] =-=-=-=-=-=-=-=-=-=-=-=-=
June 23, 200025 yr Author Newbies How would I script that? Is there a specific calculation to tell it to go to the next repetition?
June 26, 200025 yr Newbies quote: Originally posted by DirtyThief: How would I script that? Is there a specific calculation to tell it to go to the next repetition? No. Workaround is to create a second database with an empty repeating field(same number of repeatitions) and do an import(with selected "Replace records" option)into the repeating field you want to clear.In this case you nees to have the same number of found records in both databases(scriptable).
June 26, 200025 yr quote: Originally posted by DirtyThief: How would I script that? Is there a specific calculation to tell it to go to the next repetition? Set Field (FieldName, 1) = "" Set Field (FieldName, 2) = "" and so on... ------------------ =-=-=-=-=-=-=-=-=-=-=-=-= Kurt Knippel Senior Filemaker Developer http://www.inthescene.com mailto:[email protected] =-=-=-=-=-=-=-=-=-=-=-=-=
Create an account or sign in to comment