So you can't have nested arrays then?
> From: Kevin Miller <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Fri, 14 Jul 2000 21:42:58 +0100
> To: [EMAIL PROTECTED]
> Subject: Re: Working with custom properties and arrays...
>
> On 14/7/00 4:48 pm, David Bovill <[EMAIL PROTECTED]> wrote:
>
>> Seem to remember that you can nest arrays as much as you want, and am
>> working under the assumption that custom properties are basically nested
>> arrays attached to objects.
>>
>> Not sure if either of these assumptions are correct, perhaps the script I am
>> working on will help clarify the syntax/conceptual problem:
>>
>>
>> on setLineTextOf someLine, displayFldName, textToSave
>> -- version MetaCard
>> put textToSave into fldArray[someLine]
>> put fldArray into opnArray[displayFldName]
>> put opnArray into cardPropertyArray["opn_menuField"]
>>
>> set the customProperties of this card to cardPropertyArray
>> end setLineTextOf
>>
>> function getLineTextOf someLine, displayFldName
>> put the customProperties of this card into cardPropertyArray
>> put cardPropertyArray["opn_menuField"] into opnArray
>> put opnArray[displayFldName] into fldArray
>> put fldArray[someLine] into someText
>>
>> return someText
>> end getLineTextOf
>
> I'm not sure what will happen when you try this, but I'm pretty sure it
> won't work ;-) You can't put an entire array into an element of another
> array. When you "put" on array into another, you replace the entire
> contents of the array you are putting into. Not sure if there is any way to
> transfer arrays otherwise unless you do it element by element.
>
> Regards,
>
> kevin
>
> Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/>
> Runtime Revolution Limited (formerly Cross Worlds Computing).
> Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.
>
>
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
>
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.