Newbies Lee Schulman Posted May 7, 2002 Newbies Share Posted May 7, 2002 I would like to create a script that would allow me to make many duplicate records. I want to be able to select the number of duplicates. At the same time I want each duplicate record to have a file number that increases by 1 with each duplicate. Link to comment Share on other sites More sharing options...
Fitch Posted May 7, 2002 Share Posted May 7, 2002 1. Make a global number field, gCount 2. Make a number field, FileNumber 3. Make a script: Loop . Duplicate Record . Set Field [FileNumber, FileNumber +1] . Set Field [gCount, gCount - 1] . Exit Loop If [gCount = 0] End Loop Just fill in your starting FileNumber, and the number of duplicates you want in the gCount field, and away you go. Link to comment Share on other sites More sharing options...
Newbies Lee Schulman Posted May 7, 2002 Author Newbies Share Posted May 7, 2002 When I tried to create the calculations: Set Field [FileNumber, FileNumber +1] Set Field [gCount, gCount - 1] I get an error message that says, "There are too many separators in this functions." What am I doing wrong? Link to comment Share on other sites More sharing options...
Vaughan Posted May 7, 2002 Share Posted May 7, 2002 These aren't calculations, they are script steps. This is how they look (more or less) when listed in scriptmaker. Set Field [FileNumber, FileNumber +1] In the square brackets, the first "FileNumber" refers to the specified field, the "FileNumber +1" refers to the calculation. Link to comment Share on other sites More sharing options...
Newbies Lee Schulman Posted May 8, 2002 Author Newbies Share Posted May 8, 2002 Thanks! It's working perfectly now. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 8184 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