Brudderman Posted October 12, 2005 Posted October 12, 2005 I have a series of fields (FM8A, Win XP) with similar names (FullName1, FullName2, etc.), and I need to clear/set all of them in a script. I can do this, of course, by specifying each field individually and the set or clear operation to be performed. Since the names are identical except for the numerical designator at the end, how can I set up a loop to do this more simply? Thanks! James McAlister www.BulletinInserts.org www.james-mc.com
Ender Posted October 12, 2005 Posted October 12, 2005 There's not a dynamic way to set the target field. Instead you can put all the fields on a layout and loop through them using Go to Next Field to change the target. Loop through that as many times as there are fields. This sounds like a good place for a related table, instead of "FullName1, FullName2, etc.".
Brudderman Posted October 12, 2005 Author Posted October 12, 2005 I was hoping to be able to use something like the FieldNames function to return a list of fields, loop through them testing for field names that match the pattern, and then act on those fields as required. But I guess that will have to wait until field names can be specified dynamically. : I'll look at the layout approach, though. Thanks!
Recommended Posts
This topic is 6984 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