A reference to problem
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
//\//\//\\