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

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

Recommended Posts

Posted

Hi every body...

I'll try to make a script to move data from global repetitive fields to a text field..

For example:

I have 2 global fields (gdiente,gdano) with 10 repetitions and another field calc to make the field name (field_name - the same repetitions like another-)

I created a script to found the field name:

Loop

Set field ["gtemp","Field_name"] here take the first repetition

Set Field ["gtemp2","Status(CurrentFieldName)"]

End Loop If ["gtemp = gtemp2"

Go to Next Field

End Loop

But now I want paste in the field found from the another global field (gdano) this depends the repetition, and check all my repetitions (10)

I hope you can help me, I was try from monday but I can't..

Thanks,

Regards

From Mexico

confused.gif

Posted

Most of that went by me, but I think what you want to be able to do is reference repetitions in a loop. Sorry, FM doesn't allow you to select a repetition with a variable, you must code the copy of each repetition explicitly.

SetField(gTemp2, Status(CurrentFieldName)) doesn't set gTemp2 to the CONTENTS of the current field, but to the NAME of the current field.

-bd

This topic is 8098 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.