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.


Addrow like removerow(index)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-02-2008, 02:07 PM
Junior Member
 
Join Date: May 2007
Posts: 11
Default Addrow like removerow(index)

Hi,

i want to add rows at the beginning of the table and not at the end.
Is there any solution? Maybe "table1.addrow(index)"

Thank you
Reply With Quote
  #2 (permalink)  
Old 02-02-2008, 02:29 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 486
Awards Showcase
Beta Tester 
Total Awards: 1
Default

You can't add a row at the start of the table.
AddRow automatically inserts rows at the end of the table.
However it is possible to use a hidden column containing an index value.
You could then insert a new row and sort the table using the unseen index.
This is I believe the recommended approach to take.

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #3 (permalink)  
Old 02-04-2008, 01:28 PM
Junior Member
 
Join Date: May 2007
Posts: 11
Default

Thank you,

i tried it and it works.
But when i save the sorted table (as .csv) it does not save it as sorted but as it was before.

"Sorry for my english."
Reply With Quote
  #4 (permalink)  
Old 02-04-2008, 02:09 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 486
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Vito View Post
But when i save the sorted table (as .csv) it does not save it as sorted but as it was before.
This is true, and has been reaised a few times here within the Forum.
the solution is to either filter the table each time you load from the file, OR, you can create a new tabel copying across the cells from the filtered table and then save this to your file.

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
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
about table.addrow() lijingtong Basic4ppc Wishlist 0 07-20-2008 02:47 AM
Input string error on Table.AddRow ohkovar Questions & Help Needed 4 07-17-2008 06:50 AM
table addRow problem Luiji Questions & Help Needed 11 05-20-2008 10:28 AM
removerow dennishea Questions & Help Needed 4 12-22-2007 08:05 PM
Index problem in the IF statement markus Questions & Help Needed 2 06-03-2007 02:10 PM


All times are GMT. The time now is 03:11 AM.


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