May 7, 200322 yr pardonnez moi for being such a boring newbie, but is there ANY way in FM that I can 'Set' the contents of a field, the name of which is constructed while within a loop ? I have defined fields called "printField1", "printField2" etc etc. Now, I can have a field called "fieldName", which I can set up to be, say, "printField" & NumToText(indexNumber). As I go through a loop, "fieldName" becomes progressively 'printField1', printField2', 'printfield3' etc etc. Can I now actually SET the defined fields called 'printField1', 'printField2' etc using a script step which accesses whatever "fieldName" contains ? If so, whoopee ! If not, pretty damned restrictive I'd say............................. Expert advice extremely welcome. thanks in advance
May 7, 200322 yr What you are trying to do is possible, but not the way you are envisioning. You haven't provided enough information to provide you with a definitive answer. Are you working on several records, or one record. Loop scripts are designed to process multiple records. Without any more information, the easiest (but maybe not the quickest way) way would be a script with a bunch of "Set Field"s: SetField(printField1,"whatever") SetField(printField2,"whatever") SetField(printField3,"whatever") etc. etc.
May 8, 200322 yr you can loop the following: go to next field set field(leave field blank, "whatever") inserts into current field ...
Create an account or sign in to comment