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.


Table create with no data


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2007, 09:23 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default Table create with no data

For my current project, i have serveral tables,
if i create a new project i also create a new empty table.
(later i will add data to it.)

Table3.AddRow ("", "" , "", "", "")
Table3.SaveCSV ("Table1.CSV",",",False)

The problem which i had is that when i open my project there
is one blank line in the table

Is there an way to create an table without any data on it?,
just create only the filename.csv for example ?

(the idea is that i need to setup some tables for later use, the files needs exists before open it,
like access you create the table before adding data to it.)

Last edited by tvrman : 06-24-2007 at 09:25 PM.
Reply With Quote
  #2 (permalink)  
Old 06-24-2007, 10:11 PM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 80
Default

Hi,

Try that:

Table3.OpenCSV ("Table1.CSV",",",True).

I don't test it but I think so it's only the empty header which is open and there is no data.

Bye

JJ M
Reply With Quote
  #3 (permalink)  
Old 06-24-2007, 10:23 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 485
Awards Showcase
Beta Tester 
Total Awards: 1
Default

You could always set the visible property to false until after the data has been loaded to the table.

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
  #4 (permalink)  
Old 06-25-2007, 04:10 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 636
Default

Quote:
Originally Posted by JJM View Post
Table3.OpenCSV ("Table1.CSV",",",True).
Additionally to this you have to code
Code:
Table3.SaveCSV ("Table1.CSV",",",True)
Now you don't need to add a blank row before saving the table.


specci48
Reply With Quote
  #5 (permalink)  
Old 06-25-2007, 09:46 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default

Quote:
Originally Posted by specci48 View Post
Additionally to this you have to code
Code:
Table3.SaveCSV ("Table1.CSV",",",True)
Now you don't need to add a blank row before saving the table.


specci48

yes just what i was looking for, i have not read the manual very
well

Thanks
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
Table doesn´t save data JOTHA Questions & Help Needed 8 08-30-2008 01:53 PM
How to create a new appointment willisgt Questions & Help Needed 2 05-15-2008 09:21 PM
Tool to create, edit , modify table and registers in sqlite 3 tucano2000 Code Samples & Tips 0 02-12-2008 01:11 PM
Can you help me create B4P lib? conf Questions & Help Needed 7 08-20-2007 08:41 PM
How to set data type when creates sql table? belotrei Questions & Help Needed 4 06-05-2007 05:34 PM


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


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