Page 1 of 1

referencing objects and the form

PostPosted: Sun Feb 13, 2011 11:29 am
by Boudewijn
If I am on a form I would like to have the possibility to reference the form itself as "this".
Any object on the form can then be accessed as this.objectname
properties in that object could then be accessed as this.objectname.Property_Event_or_Method
Coming from an object I would like to have the possibility to code something like:

thisform.formProperty_Event_or_Method (referencing a PEM on the form)
or
thisform.AnotherObjectOnTheForm.Property_Event_or_Method (referencing a PEM of an object on the form)

Being IN an object I would like to do something like this.ObjectPropertyEvent_or_Method (referencing the object's own PEM's.)

Re: referencing objects and the form

PostPosted: Sun Feb 13, 2011 12:22 pm
by ROCLASI

Re: referencing objects and the form

PostPosted: Mon Feb 14, 2011 11:17 am
by pbakker
JavaScript already has this, but unfortunately the scoping of this has odd behavior attached to it, thus it's not really usable.

Hence we don't offer codecompletion on it.

Paul