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.

Table create with no data

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2007, 08:23 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
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 08:25 PM.
Reply With Quote
  #2 (permalink)  
Old 06-24-2007, 09:11 PM
JJM JJM is offline
Senior Member
 
Join Date: Apr 2007
Location: France
Posts: 150
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, 09:23 PM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
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.
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #4 (permalink)  
Old 06-25-2007, 03:10 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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",",",<b>True</b>)
Now you don't need to add a blank row before saving the table.


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

Quote:
Originally Posted by specci48 View Post
Additionally to this you have to code
Code:
Table3.SaveCSV ("Table1.CSV",",",<b>True</b>)
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table doesn´t save data JOTHA Questions (Windows Mobile) 8 08-30-2008 12:53 PM
How to create a new appointment willisgt Questions (Windows Mobile) 2 05-15-2008 08:21 PM
Tool to create, edit , modify table and registers in sqlite 3 tucano2000 Code Samples & Tips 0 02-12-2008 12:11 PM
Can you help me create B4P lib? conf Questions (Windows Mobile) 7 08-20-2007 07:41 PM
How to set data type when creates sql table? belotrei Questions (Windows Mobile) 4 06-05-2007 04:34 PM


All times are GMT. The time now is 04:30 AM.


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