harryk Posted June 19, 2002 Posted June 19, 2002 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?
Kurt Knippel Posted June 19, 2002 Posted June 19, 2002 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.
harryk Posted June 19, 2002 Author Posted June 19, 2002 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
danjacoby Posted June 20, 2002 Posted June 20, 2002 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?
RussBaker Posted June 20, 2002 Posted June 20, 2002 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...
djgogi Posted June 20, 2002 Posted June 20, 2002 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
harryk Posted June 20, 2002 Author Posted June 20, 2002 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
Recommended Posts
This topic is 8537 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