Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucsd!usc!apple!anderson From: anderson@Apple.COM (Clark Anderson) Newsgroups: comp.sys.mac.programmer Subject: Re: Floating Point #'s as Strings in Dialogs using Think C 3.0 Keywords: Getting garbage in TextItems...how come? Message-ID: <41800@apple.Apple.COM> Date: 10 Jun 90 05:09:28 GMT References: <25837@netnews.upenn.edu> Distribution: na Organization: Apple Computer Inc, Cupertino, CA Lines: 21 >From: isler@grad1.cis.upenn.edu: >The result is that garbage is printed in the dialog instead of the >converted string. The above conversion method works fine when I am >displaying floats as strings in windows, but it does not work here. I'm not a C expert (yet), but since you're making a Pascal Toolbox call with SetIText, don't you need to cast your numeric string to be a Pacal type? (With /p, or something like that) --clark -- ----------------------------------------------------------- Clark Anderson InterNet: anderson@apple.com CPU Engineering AppleLink: C.ANDERSON Apple Computer, Inc BellNet: 408-974-4593 "I speak only for myself, much to my employer's relief..." -------------------------------------------------------------