G
Guest
We got it... 
from my post to VS.NET 2005 VB.NET ng...
Subject: function return values
From: "[MS][email protected]" <[email protected]> Sent: 7/2/2004 12:56:27 PM
Yes, you will get this warning in vs 2005. Check this
feature out in the beta1.
Also you will get a green squiggle in the function with
nice tooltips to indicate what is going on.
(e-mail address removed)
This posting is provided "AS IS" with no warranties, and
confers no rights.
..
sorry for the cross post (dotnet.general....)
It would be really nice if we could have an
Option VeryStrict (or similar)
that caused a compilation warning or error for function
calls that did not assign return values
eg
Split(MyString,",")
instead of
MyArray = Split(MyString,",")
The time overhead of having to type Bitbucket= ...
when i dont need the return value would be more than
recovered by having bugs trapped at compile time rather
than runtime.
cheers
gu
..

from my post to VS.NET 2005 VB.NET ng...
Subject: function return values
From: "[MS][email protected]" <[email protected]> Sent: 7/2/2004 12:56:27 PM
Yes, you will get this warning in vs 2005. Check this
feature out in the beta1.
Also you will get a green squiggle in the function with
nice tooltips to indicate what is going on.
(e-mail address removed)
This posting is provided "AS IS" with no warranties, and
confers no rights.
..
sorry for the cross post (dotnet.general....)
It would be really nice if we could have an
Option VeryStrict (or similar)
that caused a compilation warning or error for function
calls that did not assign return values
eg
Split(MyString,",")
instead of
MyArray = Split(MyString,",")
The time overhead of having to type Bitbucket= ...
when i dont need the return value would be more than
recovered by having bugs trapped at compile time rather
than runtime.
cheers
gu
..