Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property and variable



On 3/11/06 16:11, Jan Bultereys wrote:
Property and variable Hi all,

Just a quick question:

Why can I not link a property to a variable:
Eg. Works
property theFolders : 5

Eg. Doesn’t work
property theFolders : theFoldersVar

Where thefoldervar is a list

Because properties are defined (and initialized) at compile-time.
Other variables are set during execution, and are thus not available for initializing a property.
But you may use a (previously) defined property:

    property a : "hello"
    property b : a

    b
       --> "hello"


HTH,
Aexl
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Property and variable (From: Jan Bultereys <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.