Click here to Skip to main content
15,895,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionObject reference not set to an instance of an object. Pin
Member 1103130429-Mar-17 23:56
Member 1103130429-Mar-17 23:56 
Hy, I get error Object reference not set to an instance of an object.

code:

VB
For index = 1 To Data.Count
          table_Rows = table_Rows + <![CDATA[
         <tr>
              <td style = "padding-bottom: 2px; width: 161px; padding-top: 2px; border-bottom: gray 1px solid;
                  height: 25px" >
                  ]]>.Value
          table_Rows = table_Rows + Data.Item(index).InnerText
          table_Rows = table_Rows + <![CDATA[</td>
              <td align = "right" style="padding-right: 5px; padding-left: 2px; padding-bottom: 2px;
                  width: 160px; padding-top: 2px; border-bottom: gray 1px solid; height: 25px">
               ]]>.Value
          table_Rows = biblioteka.Item(index).InnerText
          table_Rows = <![CDATA[</td>
              <td style = "padding-bottom: 2px; padding-top: 2px; border-bottom: gray 1px solid;
                  height: 25px" >
              </td>
                      </tr>
      ]]>.Value


      Next





the error points to rows:

VB
table_Rows = Data.Item(index).InnerText

and
VB
table_Rows = lib.Item(index).InnerText


modified 30-Mar-17 6:24am.

AnswerRe: Object reference not set to an instance of an object. Pin
Ralf Meier30-Mar-17 0:07
mveRalf Meier30-Mar-17 0:07 
GeneralRe: Object reference not set to an instance of an object. Pin
Member 1103130430-Mar-17 0:28
Member 1103130430-Mar-17 0:28 
Questionmultithreads Pin
Member 1306030229-Mar-17 20:41
Member 1306030229-Mar-17 20:41 
AnswerRe: multithreads Pin
Chris Quinn29-Mar-17 21:29
Chris Quinn29-Mar-17 21:29 
GeneralRe: multithreads Pin
Member 1306030229-Mar-17 22:16
Member 1306030229-Mar-17 22:16 
GeneralRe: multithreads Pin
Chris Quinn29-Mar-17 22:18
Chris Quinn29-Mar-17 22:18 
GeneralRe: multithreads Pin
Member 1306030229-Mar-17 23:59
Member 1306030229-Mar-17 23:59 
Questionimporting excel file to sql server Pin
Member 1305213529-Mar-17 8:31
Member 1305213529-Mar-17 8:31 
AnswerRe: importing excel file to sql server Pin
Member 1303625129-Mar-17 9:50
Member 1303625129-Mar-17 9:50 
QuestionMacro to hide rows and columns with zero values Pin
Member 1308978628-Mar-17 3:07
Member 1308978628-Mar-17 3:07 
QuestionRe: Macro to hide rows and columns with zero values Pin
CHill6028-Mar-17 3:38
mveCHill6028-Mar-17 3:38 
AnswerRe: Macro to hide rows and columns with zero values Pin
Member 1308978628-Mar-17 3:41
Member 1308978628-Mar-17 3:41 
AnswerRe: Macro to hide rows and columns with zero values Pin
CHill6028-Mar-17 3:58
mveCHill6028-Mar-17 3:58 
GeneralRe: Macro to hide rows and columns with zero values Pin
Member 1308978628-Mar-17 10:53
Member 1308978628-Mar-17 10:53 
AnswerRe: Macro to hide rows and columns with zero values Pin
ZurdoDev29-Mar-17 1:04
professionalZurdoDev29-Mar-17 1:04 
QuestionDES Coding on visual studio 2010 Pin
Member 1307673422-Mar-17 2:31
Member 1307673422-Mar-17 2:31 
GeneralRe: DES Coding on visual studio 2010 Pin
Ralf Meier22-Mar-17 3:13
mveRalf Meier22-Mar-17 3:13 
AnswerRe: DES Coding on visual studio 2010 Pin
Jochen Arndt22-Mar-17 3:14
professionalJochen Arndt22-Mar-17 3:14 
QuestionClient/Server Application - Locating Server on Network Pin
Dominick Marciano15-Mar-17 12:37
professionalDominick Marciano15-Mar-17 12:37 
SuggestionRe: Client/Server Application - Locating Server on Network Pin
Richard MacCutchan15-Mar-17 22:43
mveRichard MacCutchan15-Mar-17 22:43 
AnswerRe: Client/Server Application - Locating Server on Network Pin
Bernhard Hiller15-Mar-17 23:17
Bernhard Hiller15-Mar-17 23:17 
AnswerRe: Client/Server Application - Locating Server on Network Pin
Dave Kreskowiak16-Mar-17 3:05
mveDave Kreskowiak16-Mar-17 3:05 
QuestionSerial device attached to USB 3.0 port not behaving same as when attached to USB2.0 Pin
SepPax10-Mar-17 6:56
SepPax10-Mar-17 6:56 
SuggestionRe: Serial device attached to USB 3.0 port not behaving same as when attached to USB2.0 Pin
CHill6010-Mar-17 11:41
mveCHill6010-Mar-17 11:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.