Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 12. Script Objects > Script Properties

12.2. Script Properties

As previously noted, you can use script objects for various purposes. Many times, you use them to take advantage of the persistent nature of their properties. A property is very similar to a variable. In fact, use of the term property variable is not inaccurate. Like ordinary variables, you can assign values to properties, use them in expressions, pass them as arguments to handlers, and so on.

To define a property, you write the keyword property followed by the name you choose, followed by a colon, followed by the initial value to assign to that property. This is the general format:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint