June 19, 200223 yr 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?
June 19, 200223 yr 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.
June 19, 200223 yr 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
June 20, 200223 yr 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?
June 20, 200223 yr 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...
June 20, 200223 yr 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
June 20, 200223 yr 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