• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: resetting record values to ""
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resetting record values to ""


  • Subject: Re: resetting record values to ""
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 01 Jan 2001 16:29:45 -0800

On 1/1/01 4:06 PM, "Bryan" <email@hidden> wrote:

> What is the fastest way to reset the values of every item of a record to ""?


set yourRec to {a:"A", b:"B", c:"C", d:"D"}

set {yourRec's a, yourRec's b, yourRec's c, yourRec's d} to {"", "", "",
""}
yourRec
-- {a:"", b:"", c:"", d:""}


I don't know a shorter way, not even
set yourRec's {a,b,c,d} to {"", "", "", ""} <--ERROR

So prepare ahead and just make the variable a short one, like 'r', instead
of 'yourRec'!

Maybe richard 23 has some crazy shorter way?

--
Paul Berkowitz


References: 
 >resetting record values to "" (From: "Bryan" <email@hidden>)

  • Prev by Date: Re: Beginner
  • Next by Date: Problems scripting the Finder with system 9.0.4
  • Previous by thread: resetting record values to ""
  • Next by thread: Re: resetting record values to ""
  • Index(es):
    • Date
    • Thread