Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!ba0k+ From: ba0k+@andrew.cmu.edu (Brian Patrick Arnold) Newsgroups: comp.sys.mac.hypercard Subject: Solutions with NewFileName XFCN Message-ID: Date: 21 Feb 90 01:27:48 GMT References: <9122@portia.Stanford.EDU>, <627@wcc.oz> Organization: Mechanical Engineering, Carnegie Mellon, Pittsburgh, PA Lines: 12 In-Reply-To: <627@wcc.oz> For those with easy Internet access, the sumex-aim.stanford.edu Macintosh archive has improved FileName and NewFileName XFCNs. Login anonymous and look for the stuffed, binhexed file deep in the dark recesses of this wonderful archive. The bug most people have is in an old version of the XFCN. In it, an uninitialized Pascal string valiantly returns garbage to HyperCard upon the first cancellation of the NewFileName XFCN. For those with source code, initialize all strings to empty and recompile the XFCN. - Brian