"With" command

Does Xojo have an equivalent to the “With” command from VB.NET?

With MyClass ’ This class has an integer property called “length”
Dim SomeVariable as Integer = .length
End With


but I wish it did :slight_smile:

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

That is correct.