Hi,
Im wondering, when I want to write and read a view times with / to console if there is not a possibility to shortening my VB code like this:
with system.console
.writeline("...")
myVar = .readline()
.writeline(...)
myVar2 = .readline()
end with
That doesnt function. What functions is to seperate the blocks for read and write:
With System.Console.In
myVar = .ReadLine()
End With
With System.Console.Out
.WriteLine("...")
End With
But thats not what makes my code effective. Is there another way to do it more elegant ???
Thank you for all answers.
Im wondering, when I want to write and read a view times with / to console if there is not a possibility to shortening my VB code like this:
with system.console
.writeline("...")
myVar = .readline()
.writeline(...)
myVar2 = .readline()
end with
That doesnt function. What functions is to seperate the blocks for read and write:
With System.Console.In
myVar = .ReadLine()
End With
With System.Console.Out
.WriteLine("...")
End With
But thats not what makes my code effective. Is there another way to do it more elegant ???
Thank you for all answers.