Re: resetting record values to ""
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