Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


object reference


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-15-2007, 04:55 PM
Senior Member
 
Join Date: Jul 2007
Posts: 147
Awards Showcase
Beta Tester 
Total Awards: 1
Default object reference

This is my code

Sub Table1_SelectionChanged (ColName, Row)
a = Row
textbox1.Text = table1.Cell("Internal",a)
textbox6.Text = table1.Cell("CldOd",a)
textbox2.Text = table1.Cell("CldFrPos",a)
textbox7.Text = table1.Cell("HtOd",a)
textbox3.Text = table1.Cell("HtFPos",a)
textbox8.Text = table1.Cell("AmtWire",a)
textbox4.Text = table1.Cell("Pph",a)
textbox9.Text = table1.Cell("WrSize",a)
textbox5.Text = table1.Cell("CycTime",a)
textbox10.Text = table1.Cell("Mach",a)
Form2.Show
form2.Refresh
End Sub

textbox10.text dumps an error code of object reference not set to an instance of an object.

If I remark it out the sub works fine.

dennishea
Reply With Quote
  #2 (permalink)  
Old 08-15-2007, 05:08 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

I don't think that this is the problem here, but you should avoid showing a new form in the Table_SelectionChanged event. At the end of this event the focus returns to the table.
Does TextBox10 exist?
Reply With Quote
  #3 (permalink)  
Old 08-15-2007, 05:12 PM
Senior Member
 
Join Date: Jul 2007
Posts: 147
Awards Showcase
Beta Tester 
Total Awards: 1
Default object reference

@ Erel

yes textbox10 does exist
Reply With Quote
  #4 (permalink)  
Old 08-15-2007, 05:19 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

Please send me the code (or upload it here if you like) and I would check it.
erel@basic4ppc.com
Reply With Quote
  #5 (permalink)  
Old 08-15-2007, 05:25 PM
Senior Member
 
Join Date: Jul 2007
Posts: 147
Awards Showcase
Beta Tester 
Total Awards: 1
Default object reference

Erel here is the code and a text file for it to load.
Attached Files
File Type: zip MyData1.zip (2.1 KB, 9 views)
Reply With Quote
  #6 (permalink)  
Old 08-15-2007, 05:27 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

There is no Mach column in your CSV file.
Reply With Quote
  #7 (permalink)  
Old 08-15-2007, 05:48 PM
Senior Member
 
Join Date: Jul 2007
Posts: 147
Awards Showcase
Beta Tester 
Total Awards: 1
Thumbs up object reference

Thanks Erel

I thought this text file worked under version 4 and was at a loss when it didn't with 5.50. I can see I have some learning to do. In the end I want to load it into a sqlite db, that will be a whole new can of worms. Thanks again for your fast response and you have created a nice product.

dennishea
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ImageList items as Reference? DaveW Questions & Help Needed 3 11-07-2008 08:35 AM
Programmers reference for Basic4PPC scott93727 Tutorials 2 05-27-2008 03:46 PM
Programmers reference for Basic4PPC scott93727 Share Your Creations 0 05-27-2008 01:43 AM
Keywords reference list Erel Announcements 7 04-30-2008 08:44 AM
Object Reference not set to an instance of an object monster9999 Questions & Help Needed 9 01-15-2008 10:56 PM


All times are GMT. The time now is 03:17 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0