• 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: "Romulus Barabas" <email@hidden>
  • Date: Mon, 04 Jun 2001 18:45:56 -0400

> 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.



How do I reset the variables? I don't know the syntax.

Romy
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


  • Follow-Ups:
    • Re: Trouble with variable persistance
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Prepare an attachment on Eudora
  • Next by Date: Akua Sweets bug? encode <hex string> from hexadecimal
  • Previous by thread: Re: Trouble with variable persistance
  • Next by thread: Re: Trouble with variable persistance
  • Index(es):
    • Date
    • Thread