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

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

Recommended Posts

Posted (edited)

I have one big table for contact management. Three fields are spouse_fname, spouse_mname, and spouse_lname. I also have husband_fname, husband_mname, husband_lname and wife_fname, wife_mname, wife_lname. I want to populate the spouse fields using a script instead of copying them over one by one from husband or wife since there are about 6000 contacts I am dealing with. I set a up a script so that.

Go to record(first)

Loop

If(isempty(spouse_fname)and (not isempty(husband_fname)

copy(husband_fname)

paste(spouse_fname)

copy(husband_mname)

paste(spouse_mname)

copy(husband_lname)

paste(spouse_lname)

else if(isempty(spouse_fname)and(not isempty(wife_fname)

copy(wife_fname)

pasete(spouse_fname)

copy(wife_mname)

paste(spouse_mname)

copy(wife_lname)

paste(spouse_lname)

(end if)

go to record (next) (exit after last)

(end loop)

the script seems logical the problem is that the values are not being copied from one field into the other.

What could be causing the values to not be copied and pasted. I know there are values there too i checked.

THanks!

Edited by Guest
Posted

Use set field rather than copy/paste. Set field works whether fields are on the layout or not. Copy/paste messes with users clipboard and is generally considered poor practice, and fails if fields are not on the layout. Example

Set field[ spouse_fname ; husband_fname ]

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