[Mono-bugs] [Bug 661817] Error VBNC99997

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 30 08:15:20 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=661817

https://bugzilla.novell.com/show_bug.cgi?id=661817#c1


--- Comment #1 from Rolf Bjarne Kvinge <rkvinge at novell.com> 2010-12-30 14:15:19 CET ---
Your code is wrong, this is what vbc says:

test.vb(183) : error BC30311: Value of type 'System.TimeSpan' cannot be
converted to 'Integer'.

   dateindex = linedate - earliest_date
               ~~~~~~~~~~~~~~~~~~~~~~~~

I've improved the error message locally and will commit the fix soon.

There are also other problems in your code (which I'll fix soon too in vbnc to
report the proper errors):

test.vb(55) : warning BC42025: Access of shared member, constant member,
 enum member or nested type through an instance; qualifying expression will not
be evaluated.

oRead = oFile.OpenText("/home/bhensley/rejected_spam.txt")
        ~~~~~~~~~~~~~~
test.vb(86) : warning BC42025: Access of shared member, constant member,
 enum member or nested type through an instance; qualifying expression will not
be evaluated.

oRead = oFile.OpenText("/home/bhensley/spamcount.txt")
        ~~~~~~~~~~~~~~
test.vb(134) : error BC30452: Operator '+' is not defined for types 'Dat
e' and 'Integer'.

   dates(j + 1) = earliest_date + j
                  ~~~~~~~~~~~~~~~~~
Y:\test\test.vb(140) : warning BC42025: Access of shared member, constant
member
, enum member or nested type through an instance; qualifying expression will
not
 be evaluated.

oRead = oFile.OpenText("/home/bhensley/rejected_spam.txt")
        ~~~~~~~~~~~~~~
test.vb(164) : warning BC42025: Access of shared member, constant member
, enum member or nested type through an instance; qualifying expression will
not
 be evaluated.

oRead = oFile.OpenText("/home/bhensley/spamcount.txt")

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list