• 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
A reference to problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A reference to problem


  • Subject: A reference to problem
  • From: "Serge Belleudy-d'Espinose" <email@hidden>
  • Date: Sun, 3 Jun 2001 13:47:08 +0200

Hi all,

As seen in the ASLG, I would like to take the benefit of one such construct:

> repeat with i from 1 to 1000
> set xList's end to i
> end repeat
>
> set rxList to a reference to xList
>
> repeat with i from 1 to 1000
> rxList's item i
> end repeat

Oh oh, this is fa-a-a-st :)

But once inside a handler, the line 'rxList's item i' gets me

-- Can't get item 1 of xList.

???

Ok, I understand this is a kind of scope problem.
I can use 'global xList' anywhere inside or outside the handler, but this is obviously not what I want.
None of the my/of me/'s I tried did work.
rxList is 'xList of <<script>>', but I cannot get the class of it. Who is script?

I'm stumped.

TIA.


Serge
--
\\//\//\// Serge Belleudy-d'Espinose Institut Jacques Monod
// // // http://www.ijm.jussieu.fr/ Univ. Jussieu - Paris
//\//\//\\


  • Follow-Ups:
    • Re: A reference to problem
      • From: Paul Skinner <email@hidden>
  • Prev by Date: Re: Two things I noticed in a simple Finder script
  • Next by Date: Re: Doh! Limit on URL Access Scripting characters?
  • Previous by thread: Run applet from browser
  • Next by thread: Re: A reference to problem
  • Index(es):
    • Date
    • Thread