Subj : [Q] How to implement nested scope? To : netscape.public.mozilla.jseng From : Jihai Qiu Date : Sat May 03 2003 03:46 am I also want to ask how to implement the nest scope using Scriptable/Context or any other class. Suppose we have two scopes A and B, and B is within A. The structure of A and B are as following: Scope A: // Sciptable object is: scopeA var a1 = 1; Scope B: //Scriptable object is: scopeB var a2 = 1; a1 = 2; // assign new value to A.a1 At Scope B, we may easily set the value for new variable "a2". But the question is how to assign the value for "a1". We can not use EvaluateString directly with scopeB as starting point. "a1" may be a simple varaible, but may be object member/property or array item. Your help is greatly appreciated. Jay .