VB got at least one thing right with the With keyword. You could use it like this:
Is there a similar keyword in Java? I'm adding stuff to a vector repeatedly but seeing "slogans.addElement" millions of times looks better like ".addElement."VB Code:
' Before Combo1.AddItem "stuff" Combo1.AddItem "things" Combo1.AddItem "fun thingies" ' After With Combo1 .AddItem "stuff" .AddItem "things" .AddItem "fun thingies" End With




Reply With Quote