with ... endwith structure
Posted: Sun Feb 13, 2011 11:39 am
While referencing object on forms or the form itself it would be nice to see a possibility like
with thisform
{
.property1.value = somevalue
.property2.value = someOtherValue
.objectOnTheForm.property1.value = YetAnotherValue
.objectOnTheForm.Method_or_Event([parameters])
.Method_or_event([parameters])
with .objectOnTheForm // a "with structure" nested in the with structure
{
.property1.value = "xyz"
.property2.value = 123
.property3.value = globals.someFunctionReturningAValue()
}
}
this way one could be saved from typing the reference to the form/object on each and every line. Thus a real time saver.
When I could add a reference to the base object (form or whatever) that would be really great, as in
with thisform as SomeBaseForm in LibraryName
{
.customProperty1.value = somevalue
}
with thisform
{
.property1.value = somevalue
.property2.value = someOtherValue
.objectOnTheForm.property1.value = YetAnotherValue
.objectOnTheForm.Method_or_Event([parameters])
.Method_or_event([parameters])
with .objectOnTheForm // a "with structure" nested in the with structure
{
.property1.value = "xyz"
.property2.value = 123
.property3.value = globals.someFunctionReturningAValue()
}
}
this way one could be saved from typing the reference to the form/object on each and every line. Thus a real time saver.
When I could add a reference to the base object (form or whatever) that would be really great, as in
with thisform as SomeBaseForm in LibraryName
{
.customProperty1.value = somevalue
}