February 3, 200521 yr 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
February 3, 200521 yr 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.
Create an account or sign in to comment