Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!hellgate.utah.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!decwrl!shelby!portia!jessica!naomi From: naomi@jessica.Stanford.EDU (Naomi Takeuchi) Newsgroups: comp.sys.mac.hypercard Subject: Problems with NewFileName XFCN Message-ID: <9122@portia.Stanford.EDU> Date: 13 Feb 90 01:25:23 GMT Sender: USENET News System Reply-To: naomi@jessica.Stanford.EDU (Naomi Takeuchi) Organization: Stanford University Lines: 26 I have a message handler that uses the NewFileName XFCN. on CopyStacki global response, decision if response is "Yes" then put NewFileName ("Save stack as: ","") into newname if newname is empty then put "Cancelled" into decision exit CopyStack end if end if etc., etc., etc., end Copy stack The problem is that the first time this handler runs the newname global variable gets garbage, mostly squares, underscores, and paragraph symbols, when the user clicks "Cancel" from the NewFileName dialog box. All the documentation I've read says that clicking the "Cancel" button returns empty. The second time this handler runs, the function behaves normally and the global newname becomes empty when the user clicks on the Cancel button. This only happens on Mac Plus, and the MacSE, the XFCN behaves normally on the MacII. Can anyone enlighten me as to why this is happening? Thanks in advance for your help. Naomi Takeuchi --------------