Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!metro!nuts!cc.nu.oz.au!mebhl From: mebhl@cc.nu.oz.au Newsgroups: comp.sys.mac.programmer Subject: @ Operator & Keydown events in Think Pascal? Message-ID: <3234.27315d8c@cc.nu.oz.au> Date: 2 Nov 90 01:50:36 GMT Organization: University of Newcastle Lines: 31 I have a problem with the @ Operator in THINK Pascal 3.0. MacTutor April 1990 has a project to create editable lists & other dialog user items, written by David Wilcox. In his keyboard unit, he borrows some functions from MacTutor, May 1988, to test for various keydown events. The crucial function has the form: function TestKey (i: longint): boolean; var myKeys: keyMap; begin GetKeys(myKeys); TestKey := BitTst(@myKeys[1], i) end; When this is run, THINK Pascal tells me that: @ can't be applied to a component of a packed type. Fair enough, I can accept this (after looking at the manual and IM). But the code obviously used to work. What's changed, and what can I change get it to work again? Or am I missing something obvious? Any help greatly appreciated. __________ Peter Lewis mebhl@cc.nu.oz.au Mech. Eng. University of Newcastle NSW 2308 AUSTRALIA