Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Acting on contents of string

Featured Replies

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

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

  • 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

  • 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

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.