Thanks
-----Original Message-----
From: Colin Holgate [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2001 15:27
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> lists and property lists
>I'm trying to construct a list (array) of property lists. Is this the
>correct syntax to go about it?
>
> stored = list()
> comparison = list()
> global stored
> global comparison
> stored[0] = [#xx:-42.95, #yy:1.25]
> comparison[0] = [#xx:39.7, #yy:195.5]
> stored[1] = [#xx:1043.3, #yy:369.1]
> comparison[1] = [#xx:5.2, #yy:173.6]
> stored[2] = [#xx:1043.3, #yy:369.1]
> comparison[2] = [#xx:-20.9, #yy:140.15]
> stored[3] = [#xx:1040.3, #yy:369.1]
> comparison[3] = [#xx:-35.95, #yy:99.2]
> stored[4] = [#xx:1040.3, #yy:369.1]
> comparison[4] = [#xx:-39.15, #yy:54.75]
The first two lines would normally be like stored = [], and
comparison = [], and they would both need to go after the point where
they are declared as globals.
The rest of your lines are ok, except that in Director lists are
counted from 1 to n, not from 0 to n-1 like in Flash. You can also
set all of them in one go, which means that all of the above could be
reduced to:
global stored,comparison
stored = [[#xx:-42.95, #yy:1.25],[#xx:1043.3,
#yy:369.1],[#xx:1043.3, #yy:369.1],[#xx:1040.3,
#yy:369.1],[#xx:1040.3, #yy:369.1]]
comparison = [[#xx:39.7, #yy:195.5],[#xx:5.2,
#yy:173.6],[#xx:-20.9, #yy:140.15],[#xx:-35.95,
#yy:99.2],[#xx:-39.15, #yy:54.75]]
Watch out for e-mail line breaks in the above. There are only three
lines of script, the global part, and the stored = and comparison =
lines. There's no need to say stored = [] first, stored will be
immediately created with the full list inside it.
--
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]
______________________________________________________________
CONFIDENTIALITY NOTICE
This communication and the information it contains is intended for the person or
organisation to whom it is addressed. Its contents are confidential and may be
protected in law. Unauthorised use, copying or disclosure of any of it may be
unlawful. If you are not the intended recipient, please contact us immediately.
The contents of any attachments in this e-mail may contain software viruses, which
could damage your own computer system. While Marlborough Stirling has taken every
reasonable precaution to minimise this risk, we cannot accept liability for any damage
which you sustain as a result of software viruses. You should carry out your own
virus checking procedure before opening any attachment.
Marlborough Stirling plc, Registered No. 3008820,
Allen Jones House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH
Tel: 01242 547000 Fax: 01242 547100
http://www.marlborough-stirling.com
The following companies are subsidiaries of Marlborough Stirling plc and are
registered in England and Wales at the above address:
Marlborough Stirling PLC, Registered No. 3008820
The Marlborough Stirling Group PLC, Registered No. 1855353
Marlborough Stirling Administration Limited, Registered No. 2341195
Metgem Limited, Registered No. 02341195
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]