smithc@thor.acc.stolaf.edu (Christopher Smith) (04/23/91)
I recently put up an article, pleading for help with writing XCMDs and XFCNs in THINK Pascal; things would compile, but then crash once tested in HyperCard. Finally got that solved. Amazing what happens when you put things in the wrong build order when making a library file! Now here's a problem that's got me a bit boggled. One of the XFCNs I have uses percentages provided by HyperCard, ie. numbers of the Extended data type. But when I perform either the StrToExt or ExtToStr commands on the given numbers, the computer crashes with either error 03 or 10. But if I change the HyperCard script to take the given percentages and multiply them by 100, then pass them to the XFCN as integers and perform StrToNum and NumToStr commands on them, not changing ANYTHING ELSE in the XFCN source code, the thing works fine. I do have an accelerator card (SpeedCard from SuperMac) and a floating point processor (68881), and I turned them off, but the same thing happened. I'm using the new HyperCard 2.0 THINK Pascal files that Symantec put up on CompuServe. It doesn't take too much time to transform the percentages into integers and then back to percentages, but it'd be more efficient if this wasn't necessary. Again, any feedback would be greatly appreciated, if anyone has any ideas or whatever. Please respond via email! Thanks very much in advance! Christopher Smith St. Olaf College, Northfield MN Internet: smithc@stolaf.edu