[2005] Combine Using and With...
I am not sure if this is possible. I want to have the using statement work the same way With does along with its current capabilities....Is there a way to merge them together? Here is a small example of what I would love to be able to do:
Code:
Using sw As New StreamWriter(FileName, True)
.Write(MyMessage)
.Close
End Using
Granted it would only be 2 extra lines, but still.....;)
Thanks and hope everyone is well!
D
Re: [2005] Combine Using and With...
I tried many different combinations and came to the conclusion that it is not possible;)