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.

Editable table

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2008, 04:42 PM
Junior Member
 
Join Date: Apr 2007
Location: Cornwall UK
Posts: 38
Send a message via Skype™ to davelew1s
Default Editable table

Hi!
This is a simplified part of my program.. when I run this code using Door.dll it puts an extra row into the table which when clicked says 'Null'....is this correct and if so what's it for?
The table edits ok but this 'Null' causes an error in my code.

Sub Globals
'Declare the global variables here.

End Sub

Sub App_Start
Form1.Show
Table1.AddCol(cNumber,"Col 1",80,false)
objTable1.New1(false)
objTable1.FromControl("Table1")
objTable1.SetProperty("ReadOnly",false)
Table1.AddRow(1234)
End Sub

I've search the Forum but nothing turned up...any help...thanks Dave
Reply With Quote
  #2 (permalink)  
Old 06-17-2008, 05:23 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Can you upload some code that demonstrates this error?
Reply With Quote
  #3 (permalink)  
Old 06-17-2008, 05:25 PM
Junior Member
 
Join Date: Apr 2007
Location: Cornwall UK
Posts: 38
Send a message via Skype™ to davelew1s
Default

Hi Erel!
The code is in my first post.
Dave.
Reply With Quote
  #4 (permalink)  
Old 06-17-2008, 05:35 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

But what error do you get?
Reply With Quote
  #5 (permalink)  
Old 06-17-2008, 05:37 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

A partial copy of some source code is in the post but not the object definitions etc. It is usually easier to diagnose these things if given a full .sbp source file that can be executed to demonstrate the problem. The problem might be somewhere other than where you have assumed and you may have missed the vital bit of data by just posting a fragment of the app.
Reply With Quote
  #6 (permalink)  
Old 06-18-2008, 10:07 AM
Junior Member
 
Join Date: Apr 2007
Location: Cornwall UK
Posts: 38
Send a message via Skype™ to davelew1s
Default

Hi!
The error is created by my code all the cells will change ok ...click on 1 change enter,2 change enter.....5 change enter gives the error when the extra row is highlighted....I might be able to get round this, but wondered why the extra row is there?
Thanks Dave.



Sub Globals
'Declare the global variables here.

End Sub

Sub App_Start
Form1.Show
Table1.AddCol(cNumber,"Col 1",80,false)
objTable1.New1(false)
objTable1.FromControl("Table1")
objTable1.SetProperty("ReadOnly",false)
For i = 1 To 5
Table1.AddRow(i)
Next
End Sub


Sub Table1_SelectionChanged (ColName, Row)
For i = 0 To Table1.RowCount -1
total = total + Table1.Cell(ColName,Row)
Next
TextBox1.Text = total
total = 0
End Sub
Reply With Quote
  #7 (permalink)  
Old 06-18-2008, 03:06 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Editable tables have an extra row to allow the user to add new rows.
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
Editable Table - Device & Desktop Erel Code Samples & Tips 27 01-15-2010 10:42 PM
Retrieve table filter from the filtered table? LineCutter Questions (Windows Mobile) 1 09-08-2008 06:20 AM
XYCalc -graphs an equation or editable table of figures in regular, bar or pie chart HarleyM Code Samples & Tips 2 11-24-2007 07:21 AM
Editable Table RandomCoder Code Samples & Tips 3 06-29-2007 10:17 PM
editable table ? giannimaione Questions (Windows Mobile) 2 05-13-2007 10:34 AM


All times are GMT. The time now is 07:22 AM.


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