August 16, 200421 yr 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
August 16, 200421 yr 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
August 16, 200421 yr Author 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
August 17, 200421 yr Author Thanks Fenton: I DID have the wrong syntax and the added para-break was the issue. Kurt
Create an account or sign in to comment