Mickdn Posted August 22, 2007 Posted August 22, 2007 Found this script in FM Help and I'm trying to implement it into my DB. In the following example, you create a script to clear the contents of a field with five repetitions count=1 Loop Clear [select;FileName::FieldName[count] count=count+1 Exit Loop If [FileName::count=5] End Loop What is [count] at the end of the Clear script? What goes in here, the word count, the value 1? And how do I get it in there, does it go in the Repetitions box? Also count=count+1, there is no script step for count that I can find, I found it in the Calculation box, but how do I get it into a script step? Yes, I know you all hate Repeating fields, and I should be using Relationships and Portals, but this is a simple 1 layout design, with no extra relationships or tables. I just want to be able to clear the repeating fields with 1 script. Many Thanks
The Shadow Posted August 22, 2007 Posted August 22, 2007 Here's an example showing the script, and its use on a button to clear repetitions. clearReps.fp7.zip
Søren Dyhr Posted August 22, 2007 Posted August 22, 2007 Steer clear of repeaters, with your skill level is it called: Go To Related Record[Found Set] Delete All Record[No Dialog] --sd
David Jondreau Posted August 22, 2007 Posted August 22, 2007 It's never too early to learn to error trap.
Søren Dyhr Posted August 22, 2007 Posted August 22, 2007 I know you all hate Repeating fields I do not hate repeating fields, only the abuse of them deliberately violating relational concepts! --sd
Recommended Posts
This topic is 6305 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