Re: does property exists in a record
Re: does property exists in a record
- Subject: Re: does property exists in a record
- From: Adam Hinshaw <email@hidden>
- Date: Sat, 11 Aug 2001 00:33:51 +1000
on 11/08/01 12:14 AM, Paul Skinner at email@hidden wrote:
>
I would just look for it. If it's not there then add it.
>
>
--begin script
>
set x to {hello:"world", goodbye:"cruel world"}
>
try
>
hello of x
>
on error
>
set x to x & {hello:"world"}
>
end try
>
--end script
problem is the property names i will be searching for are not constant.
They come from strings and will vary.
is there a way then to coerce a string to a record property ??
doesn't look like it at the moment.
adam.