Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7874 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

you can loop the following:

go to next field

set field(leave field blank, "whatever") inserts into current field ...

This topic is 7874 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.