HendersonD Posted February 3, 2005 Share Posted February 3, 2005 Is there a way to dynamically specify a field in a "Set Field" script step? In other words, can I "Set Field [calculated field name; calculated/stored result]"? I have come across one solution that loops through fields on a layout that is not visible or modifiable by the end user: http://www.fmforums.com/threads/showflat.php?Cat=0&Number=138056&an=0&page=0%23138056 Is there any other way to do this? I have 13 scripts that are all 3 lines long each. These scripts are very similar and just use set field commands to set values in particular fields in several different tables. I would like to bring this down to one script and use script parameters to pass along what table and what field I want to set. Thanks Dave Link to comment Share on other sites More sharing options...
-Queue- Posted February 3, 2005 Share Posted February 3, 2005 No, that's why the looping solution exists. You can use script parameters with the looping script, and Get(ActiveFieldTableName) and FieldNames( Get(FileName); Get(LayoutName) ) to ensure you're on the appropriate layout and the desired field exists on it. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6621 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