Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!jdevoto From: jdevoto@Apple.COM (Jeanne A. E. DeVoto) Newsgroups: comp.sys.mac.hypercard Subject: Re: Naming new fields Message-ID: <40750@apple.Apple.COM> Date: 4 May 90 22:04:36 GMT References: <54453@microsoft.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 22 In article <54453@microsoft.UUCP> peterbak@microsoft.UUCP (Peter BAKO) writes: >How does one create a new field via a HyperCard script, and then >proceed to give a name to this new field? Unlike a button, fields >are not given a default name, and there is no way that I can >reference to them. The easiest way to do this is to take advantage of the fact that newly- created fields are at the top layer, and therefore have the highest field number: on mouseUp doMenu "New Field" set the name of card field (the number of card fields) to "New Field" -- etc. end mouseUp -- ========= jeanne a. e. devoto ======================================== jdevoto@apple.com | You may not distribute this article under a jdevoto@well.sf.ca.us | compilation copyright without my permission. ______________________________________________________________________ Apple Computer and I are not authorized | CI$: 72411,165 to speak for each other. | AppleLink: SQA.TEST