to answer my own question, this will work (I think):
-- ie work out distance to cover in x and y
-- the arguments pt and cr need to be property lists
-- with identical property names (obviously the values can
-- be different :]
on globalToLocal pt, cr
return pt-cr
end
-----Original Message-----
From: Simon Wheatley [mailto:[EMAIL PROTECTED]]
Sent: 26 September 2001 10:13
To: '[EMAIL PROTECTED]'
Subject: <lingo-l> calculations while setting property lists
Can anyone tell me if this kind of thing is possible:
-- ie work out distance to cover in x and y
on globalToLocal pt, cr
return [#xx:(pt[#xx]-cr[#xx]), #yy:(pt[#yy]-cr[#yy])]
end
Lingo seems to be choking on it at the moment. The obvious answer is to set
the values as variable, and then use them to set the properties in the list,
but us there a more compact elegant way of doing it?
______________________________________________________________
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!]
[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!]