• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trouble with variable persistance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with variable persistance


  • Subject: Re: Trouble with variable persistance
  • From: Ian Mantripp <email@hidden>
  • Date: Fri, 01 Jun 2001 14:55:53 +0200

on 01/06/01 10:56 AM, Romulus Barabas wrote:

> I have to declare a, b, c as
> global variables at the beginning of the script, otherwise subroutines won't
> be able to do work on them and pass them on.

You don't have to declare variables as global or property, you can pass
local variables as parameters to your subroutine.

If you want to use globals or properties and don't want persistance you can
reset them when your script ends or using the "on quit" handler.


Ian


References: 
 >Trouble with variable persistance (From: "Romulus Barabas" <email@hidden>)

  • Prev by Date: Re: make command
  • Next by Date: Entourage: make new contact
  • Previous by thread: Trouble with variable persistance
  • Next by thread: Entourage: make new contact
  • Index(es):
    • Date
    • Thread