Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

object reference

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-15-2007, 03:55 PM
Senior Member
 
Join Date: Jul 2007
Location: Michigan Usa
Posts: 176
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, 04:08 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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, 04:12 PM
Senior Member
 
Join Date: Jul 2007
Location: Michigan Usa
Posts: 176
Awards Showcase
Beta Tester 
Total Awards: 1
Default object reference

@ Erel

yes textbox10 does exist
Reply With Quote
  #4 (permalink)  
Old 08-15-2007, 04:19 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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, 04:25 PM
Senior Member
 
Join Date: Jul 2007
Location: Michigan Usa
Posts: 176
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, 11 views)
Reply With Quote
  #6 (permalink)  
Old 08-15-2007, 04:27 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

There is no Mach column in your CSV file.
Reply With Quote
  #7 (permalink)  
Old 08-15-2007, 04:48 PM
Senior Member
 
Join Date: Jul 2007
Location: Michigan Usa
Posts: 176
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 Off
Pingbacks are Off
Refbacks are On

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


All times are GMT. The time now is 10:59 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0