Click here to Skip to main content
15,920,111 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How do i bind a Datatable or datagrid col to text boxes? Pin
Christian Graus26-Jul-07 14:01
protectorChristian Graus26-Jul-07 14:01 
GeneralRe: How do i bind a Datatable or datagrid col to text boxes? Pin
Jeffrey Shane28-Jul-07 9:49
Jeffrey Shane28-Jul-07 9:49 
QuestionUpdating an Access Database Pin
RichFeldman26-Jul-07 5:30
RichFeldman26-Jul-07 5:30 
AnswerRe: Updating an Access Database Pin
Paul Conrad26-Jul-07 18:02
professionalPaul Conrad26-Jul-07 18:02 
GeneralRe: Updating an Access Database Pin
RichFeldman27-Jul-07 3:46
RichFeldman27-Jul-07 3:46 
GeneralRe: Updating an Access Database Pin
S Douglas29-Jul-07 23:18
professionalS Douglas29-Jul-07 23:18 
GeneralRe: Updating an Access Database Pin
RichFeldman30-Jul-07 6:13
RichFeldman30-Jul-07 6:13 
QuestionWhat is object reference not set to an instance of an object? Pin
sweehin1826-Jul-07 4:45
sweehin1826-Jul-07 4:45 
Do While lcp_objReader.Peek() <> -1

                str_lcp_Tmp = lcp_objReader.ReadLine()

                str_lcp_data(a) = str_lcp_Tmp.Split(lcp_delimiter, StringSplitOptions.RemoveEmptyEntries)



                If str_lcp_data(a).Length > 0 Then


                    For index As Integer = 0 To str_lcp_data(a).Length - 1

                        Console.Write(str_lcp_data(a)(index) + "|")
              
                    Next

                    Console.Write(vbCrLf)
                    a += 1

                End If

            Loop


i would like to print out the row 120, so i put

Console.Write(str_lcp_data(120)(index) + "|")


After debug, it gave the message "object reference not set to an instance of an object". How come it become like this?

If i want to print the rows after row 120 (from 121 until end of the file), should i initialise a to 120 before do while loop?
AnswerRe: What is object reference not set to an instance of an object? Pin
Tom Deketelaere26-Jul-07 5:02
professionalTom Deketelaere26-Jul-07 5:02 
GeneralRe: What is object reference not set to an instance of an object? Pin
sweehin1826-Jul-07 5:19
sweehin1826-Jul-07 5:19 
GeneralRe: What is object reference not set to an instance of an object? Pin
Tom Deketelaere26-Jul-07 5:31
professionalTom Deketelaere26-Jul-07 5:31 
AnswerRe: What is object reference not set to an instance of an object? Pin
TwoFaced26-Jul-07 7:53
TwoFaced26-Jul-07 7:53 
Questionediting exe.cofig file Pin
halder_rajib26-Jul-07 3:35
halder_rajib26-Jul-07 3:35 
AnswerRe: editing exe.cofig file Pin
Dave Kreskowiak26-Jul-07 3:51
mveDave Kreskowiak26-Jul-07 3:51 
JokeRe: editing exe.cofig file Pin
Paul Conrad26-Jul-07 6:06
professionalPaul Conrad26-Jul-07 6:06 
QuestionWriting text in next line Pin
Archana New to Dotnet26-Jul-07 3:12
Archana New to Dotnet26-Jul-07 3:12 
AnswerRe: Writing text in next line Pin
Tom Deketelaere26-Jul-07 3:16
professionalTom Deketelaere26-Jul-07 3:16 
GeneralRe: Writing text in next line Pin
Archana New to Dotnet26-Jul-07 19:19
Archana New to Dotnet26-Jul-07 19:19 
AnswerRe: Writing text in next line Pin
Rupesh Kumar Swami27-Jul-07 0:00
Rupesh Kumar Swami27-Jul-07 0:00 
QuestionBatch file problem Pin
The Mighty Atom26-Jul-07 3:07
The Mighty Atom26-Jul-07 3:07 
AnswerRe: Batch file problem Pin
kubben26-Jul-07 3:11
kubben26-Jul-07 3:11 
AnswerRe: Batch file problem Pin
Dave Herren26-Jul-07 3:21
Dave Herren26-Jul-07 3:21 
AnswerRe: Batch file problem Pin
Luc Pattyn26-Jul-07 3:30
sitebuilderLuc Pattyn26-Jul-07 3:30 
AnswerRe: Batch file problem Pin
Dave Kreskowiak26-Jul-07 3:44
mveDave Kreskowiak26-Jul-07 3:44 
GeneralRe: Batch file problem Pin
The Mighty Atom26-Jul-07 3:50
The Mighty Atom26-Jul-07 3:50 

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.