sdl@linus.UUCP (Steven D. Litvintchouk) (04/27/89)
I've encountered a problem with using the 4th Dimension scripting language to write procedures that delete records. I wrote a layout procedure that I want to attach to a "delete" button on the layout. The procedure is to delete the record currently displayed in the layout (and afterwards it'll display some interesting user messages). But I haven't even been able to get deletion of the selected record to work properly. When the layout procedure executes the DELETE RECORD command, the record is deleted. But immediately afterward, either 4th Dimension crashes (displaying a "4th Dimension has unexpectedly quit" alert box); or else the Mac itself locks up and must be rebooted. Has anyone seen anything like this? More generally, are there any good references/tutorials in Mac magazines/books on writing 4th Dimension procedures? The docs that came with 4th Dimension don't show any examples of layout procedures that involve record deletions. I also bought a book on 4th Dimension (by Tim Knight), but that doesn't cover examples of record deletions either. Please reply directly to me as I am not a regular subscriber of this newsgroup. Any help will be most appreciated! Steven Litvintchouk MITRE Corporation Burlington Road Bedford, MA 01730 (617)271-7753 ARPA: sdl@mbunix.mitre.org UUCP: ...{att,decvax,genrad,ll-xn,philabs,utzoo}!linus!sdl