Hi Matthias, What you're seeing is SKILL's dynamic scoping. In this example the call to hiDisplayForm is within the function CCSEditReportForm, and because the hiDisplayForm call is blocking, at the point it is called the scope is still within the let within CCSEditReportForm. Because of that, the "local" variables are still visible (you can think of each variable as being like a stack when in SKILL mode (not SKILL++ though, which uses lexical scoping)). So the variables will be visible until that scope ends (the let returns). If you add ?dontBlock t into the arguments of the hiCreateAppForm, then hiDisplayForm will return as soon as the form is display, and then the let() will return too, and so the reportField variable will no longer be in scope - and so won't be visible when you type reportField in the CIW. Regards, Andrew
↧