I have been reading the on-line documentation for the new PB and it appears that the "With / End With" construct found in VB and VBScript is missing in PB.
I always found the "With" statement to be a really nice way to tickle multiple properties and methods of an object without having to reference the object over and over again. I also feel that it makes your code cleaner and easier to read:
With MyObject
Does anyone know why this construct is missing? Will the "With / End With" construct be added to PB?
I always found the "With" statement to be a really nice way to tickle multiple properties and methods of an object without having to reference the object over and over again. I also feel that it makes your code cleaner and easier to read:
With MyObject
.PropertyA = this
.PropertyB = that
.PropertyC = theotherthing
.DoMethod
End With.PropertyB = that
.PropertyC = theotherthing
.DoMethod
Does anyone know why this construct is missing? Will the "With / End With" construct be added to PB?
Comment