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.

AddCol to Table problem ?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-14-2008, 04:09 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default AddCol to Table problem ?

In my program I recreate a table as follows:

top= Table1.Top
left= Table1.Left
height=Table1.Height
width= Table1.Width
Table1.dispose
Msgbox("1")
AddTable("Form1","Table1",left,top,width,height)
Msgbox("2")
Table1.AddCol(CString,"F",15)
Table1.AddCol(CString,"POI's",450)
Table1.AddCol(CString,"Photo1",0)
Table1.AddCol(CString,"Photo2",0)
Table1.AddCol(CString,"Photo3",0)
Table1.AddCol(CNumber,"ID",0)
Table1.AddCol(CString,"Comment",0)
Msgbox("3")
Table1.Visible=false
Table1.clear

The MsgBox messages are inserted for debugging. Between 2 and 3 I get an error reported. In debugging mode the code works fine.

On the Desk Top I get the message ( translated): The collection of column styles contains already a column style with the same name. Parameter name: column.

Is something left after Dispose?

Harry
Reply With Quote
  #2 (permalink)  
Old 01-14-2008, 06:01 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

I don't get an error with that exact fragment of code which runs as I expect in the IDE and desktop legacy compile. However the optimising compile leaves the table visible at the end seemingly ignoring the "Table1.Visible=false" statement. I'll investigate a bit more and post that last effect as a bug.
Reply With Quote
  #3 (permalink)  
Old 01-14-2008, 06:44 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This is a bug and it will be fixed in the next release.
For now the workaround is to add the table using code from the first time (delete it from the designer).
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
Retrieve table filter from the filtered table? LineCutter Questions (Windows Mobile) 1 09-08-2008 06:20 AM
table addRow problem Luiji Questions (Windows Mobile) 11 05-20-2008 09:28 AM
Ajuda por favor com TABLE.AddCol PSRC Portuguese Forum 2 03-13-2008 04:31 PM
helpTABLE.AddCol PSRC Questions (Windows Mobile) 0 03-13-2008 03:23 PM


All times are GMT. The time now is 06:37 AM.


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