Path: utzoo!attcan!uunet!crdgw1!galen!leue From: leue@galen.crd.ge.com (Bill Leue) Newsgroups: comp.sys.mac.hypercard Subject: Re: Questions about fields Message-ID: <17183@crdgw1.crd.ge.com> Date: 28 Feb 91 17:14:18 GMT References: <8652.27cba365@jetson.uh.edu> Sender: news@crdgw1.crd.ge.com Organization: General Electric Research & Development Lines: 31 In article <8652.27cba365@jetson.uh.edu> inde5py@jetson.uh.edu writes: >Hi all, > >... (edited) >Also, is there a simple way of locking the text in all fields after all data is >entered? The only thing I can think of is to "set" the parameter individually >for each field--pain! >...(edited) >Thanks for the help! Answers can be posted or E-mailed to >INDE5PY@JETSON.UH.EDU > >Thanks again! How easy sort of depends on how you name your fields, but if, for instance, you imposed a regular naming convention, say "fld1, fld2, ...", then it's trivial to write a script to do it: repeat with i = 1 to numfields put "fld" & i into fname set the LockText of card field fname to true end repeat I have a stack made up entirely of trivial little handlers like this one, parameterized so that I can direct them to particular cards, number of items, etc. They're real handy for doing things like aligning card objects, locking or unlocking fields, and in general, doing the kind of repetitive grundge chores that you really don't want to do by hand. Hope this helps, -Bill Leue leue@crd.ge.com