Prev: Hidding a Div using VBscript
Next: End of Line
From: mayayana on 8 Sep 2009 10:58 > I respectfully disagree about using With. Microsoft documentation > says "With...End With allows you to perform a series of statements on > a specified object without requalifying the name of the object" and > "Doing this can make your procedures run faster and help you avoid > repetitive typing." I also feel it makes the code cleaner and easier > to read. Yes. I like With/End With in general. It's more efficient because it doesn't have to keep resolving the object reference on each line. I was just talking about using it with CreateObject It's especially confusing to new people who are having trouble following which variable is which in the first place. But of course, it's really a matter of personal preference. In any case, being "respectfully" disagreed with is quite a pleasant way to start my day. I don't remember the last time I saw that particular courtesy. :) |