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.

Mac/Windows CurrentMessagechoice output

Featured Replies

The online help of Filemaker warns that the output of Status(CurrentMessageChoice) is 1 2 3 on Mac, and 0 1 2 on Windows. A friend of mine experiences on Windows 1 2 3 as it is on Mac.

It seems to me it would be rather a handicap if the output on Windows is indeed different, you should rewrite your scripting, or catching the system (Mac/Windows) used with the status function developed for this..

Can some superuser shine his or her light on this?

I think that those dialogs are simply OS dialogs, and so they are IDed by the OS. Different versions of the OS will ID them differently. I would not be surprised if Win95 and WinXP do it differently.

I do not remember this issue from when I develop cross-platform so maybe I am wrong on the above.

  • Author

In the help-text "Show message script step" the filemaker help is explicit:

Windows: 0 rightmost button 1 middle or second 2 leftmost button

Mac OS: 1 2 3

It may very well be that different versions of Windows react differently, but either cross-platform developers do not lean on the message function; avoid it, or ... I really don't know. I want to know how these things behave on different platforms, developing something for those different platforms.

So more reactions are welcome

Harry

Not my Filemaker Help. It says:

"Returns 1 for the first button (by default, labeled OK), 2 for the second button (by default, labeled Cancel), and 3 for the third button."

That's it. I'm using v5.0 for Mac. Could it be that v5.5 has a slightly different help file? Or is it the help file in the Windows version?

I've always had to do this using nested If Statements in scripts to pick if it is Mac of Win and then tak action accordingly, so it ends up like:

If(Status(CurrentMessage Choice) + if(status(CurrentPlatform)=1,0,1) = 3)

. Do the right button thing

End If

If(Status(CurrentMessage Choice) + if(status(CurrentPlatform)=1,0,1) = 2)

. Do the middle button thing

End If

etc etc

This is also handy for going to different print layouts because WYSIWYG on Windows ain't quite there yet...

The return codes are the same on both systems. Look at www.filemaker.com/ti/104070.html.

It is an error in windoz help file.

Dj

  • Author

djgogi has provided the definite answer: it's the same on both systems (perhaps wasn't in very early versions),

but it's there in the mac v 5.0 helpfile too, when you look with "Show message". I think what you see is the answer with ""CurrentMessageChoice". Anyhow, ignore it.

Harry

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.