Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!uupsi!sunic!tut!santra!hemuli.tik.vtt.fi!tik.vtt.fi!imp From: imp@tik.vtt.fi (Ilkka Priha) Newsgroups: comp.sys.mac.hypercard Subject: Re: Naming new fields Message-ID: <4873@hemuli.tik.vtt.fi> Date: 4 May 90 07:40:55 GMT References: <54453@microsoft.UUCP> Sender: news@hemuli.tik.vtt.fi Organization: Technical Research Centre of Finland, Laboratory for Information Processing (VTT/TIK) Lines: 28 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. > >on mouseUp > doMenu "New Field" > set the name of cd fld "" to "theField" >end mouseUp > >That will not work. This should work: on mouseUp doMenu "New Field" get the number of last cd fld set name of cd fld it to "theField" end mouseUp -- Ilkka Priha | Internet: priha@tik.vtt.FI Systems Consultant | Bitnet: priha:FINVTT.BITNET Tiihonen Software Co. Ltd | UUCP: mcvax!tikvtt!priha Finland | PSI-mail: PSI%204041::VTTTIK::PRIHA