Value was either too large or too small for an Int16 error

Posted by Barlow Tucker on Stack Overflow See other posts from Stack Overflow or by Barlow Tucker
Published on 2010-06-09T15:48:41Z Indexed on 2010/06/09 15:52 UTC
Read the original article Hit count: 233

Filed under:

I am working on fixing a bug in VB that is giving this error. I am new to VB, so there is some syntax that I am not fully understanding. The code that is throwing the error says:

.Row(itemIndex).Item("parentIndex") = CLng(oID) + 1000000

I understand that adding 1000000 is too much for an int16. I can't change that value (not right now anyway). What I don't understand, and can't seem to find, is what .Row is referring too. Any ideas?

© Stack Overflow or respective owner

Related posts about vb.net