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

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

Recommended Posts

Posted

Hi all:

I think this should be easy but I must be missing something. I grab all open window names (knowing only 2 should be open), remove the name of one constant window and what's left should be the window I want to act on. That all works. I can return the resultant window name and it is correct.

I have tries then using 'Set Field' to poulate a global with the indow name so I can use it in a case or If...Then script. But while the global field shows it is being populated with the window name, the script won't act on it.

I have also tried passing the window name directly to the script, as in the attached screenshot, but that also fails. (The 'Else' clause always fires.)

What could I be doing wrong? The window name IS 'Trip_Input' and I can see it returned, so why do my scripts ignore it? Can anyone see?

Thanks

Kurt

Script.gif

Posted

You've almost certainly got a carriage return at the end; which you can't see in the dialog. Trim only removes spaces. Substitute to remove

Posted

Thanks Fenton:

I should have mentioned that I originally did:

Substitute( WindowNames & "cr" ; etc, etc.)

... where 'cr' was the carriage return symbol. It didn't work. But maybe I had the syntax wrong. I'll try it again.

Kurt

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