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

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

Recommended Posts

Posted

I created a subset of my Members table. It holds PK_ID and Type

I collect into $$PriorType the value of the PRIOR value of the selected 'Type'.

I collect into $$NewType the value of the CURRENT valaue (collected on EXIT) of the 'Type'

From a script, everything works as expected until I get to the Replace command:

post-72145-0-99483600-1332223231_thumb.j

At best, I can change the first Type in the first record. Additional Types remain unchanged.

post-72145-0-33227200-1332223120_thumb.j

I am not real clear on the optional settings on Find/Replace but I have tried all the different combinations and permutations with frustrating results.

post-72145-0-75647000-1332223145_thumb.j

I can 'see' in debug that everything is working as expected. But, when I get to Find/Replace, I am unable to get all the 'found set' to be changed.

post-72145-0-57399200-1332223505_thumb.j

Also, I can see the cursor in the top record in the Type field. The record below remains unchanged. If that isn't weird enough, Close Window does not close the window? huh...

Posted

Aren't you using the wrong script step?

Look at:

Replace Field Contents [ ]

under the Fields group.

Thank you for the suggestion.

However, it turns out that the $$NewType was set when I closed a window which triggered an ON EXIT script. I never thought that closing a window would trigger such an event; but it does. Mystery solved.

However, I still had to 'guestimate' my way through the meaning of the various Replace dialog options. And, I can't find anything on the FM web site that provides anything but the barest of explanations. Got any ideas?

Ron

Posted

However, I still had to 'guestimate' my way through the meaning of the various Replace dialog options.

Uhm, as Daniele was saying, you are using the wrong script step -

If you want, as you say, "I can change the first Type in the first record. Additional Types remain unchanged." then I think you need to use Replace Field Contents[]. It is common to get those two mixed up the first time; we've all gone through it. :^)

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