KurtW Posted August 16, 2004 Posted August 16, 2004 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
Fenton Posted August 16, 2004 Posted August 16, 2004 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
KurtW Posted August 16, 2004 Author Posted August 16, 2004 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
KurtW Posted August 17, 2004 Author Posted August 17, 2004 Thanks Fenton: I DID have the wrong syntax and the added para-break was the issue. Kurt
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now