Does Xojo have an equivalent to the “With” command from VB.NET?
e.g.
With MyClass ’ This class has an integer property called “length”
Dim SomeVariable as Integer = .length
End With
Does Xojo have an equivalent to the “With” command from VB.NET?
e.g.
With MyClass ’ This class has an integer property called “length”
Dim SomeVariable as Integer = .length
End With
No.
but I wish it did
There is the Using keyword (http://documentation.xojo.com/api/language/using.html), which can save you some typing, but nothing will get you to something like just a bare .length reference.
USING and WITH are not even close to being the same thing
No need to be rude… I was clarifying what I saw as a misconception on your part
Using is short hand for referring to a namespace
With is short hand for accessing the member properties, methods, etc of a class instance
They really do address different issues
There’s a long standing feature request for WITH … END WITH
<https://xojo.com/issue/2077>
That is correct.