Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.

SQLite and field name

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2010, 10:11 AM
Junior Member
 
Join Date: Jun 2010
Posts: 13
Smile SQLite and field name

Hello

You may use the expression GetValue (Index) the name of the field instead of your index?

I can not find information ...

Regards
Reply With Quote
  #2 (permalink)  
Old 07-10-2010, 07:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Currently not.
Reply With Quote
  #3 (permalink)  
Old 07-11-2010, 08:05 AM
Junior Member
 
Join Date: Jun 2010
Posts: 13
Talking SQLite and field name



OK, Thanks for the answer ... one more thing, abusing your kindness, I read that there is a command (I think it is vacuum), which is equivalent to the order to compact the database

If it is true that there is this command ... as would be implemented?

Regards
Jordi Lladonosa
Reply With Quote
  #4 (permalink)  
Old 07-11-2010, 08:39 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Vacuum is part of the SQLite syntax: SQLite Query Language: VACUUM
As such it is supported by the SQL library.
Reply With Quote
  #5 (permalink)  
Old 07-22-2010, 12:00 PM
Junior Member
 
Join Date: Jun 2010
Posts: 13
Default SQLite Vacuum

Hello, I can not run the VACUUM command in my application ... SQLite processes the command and it not returns error, but the database continues with the same size, which is what I do wrong?

Sub VacuumDB

WaitCursor(True)
modDBs.InitConnDB
modDBs.ConnDBApp.BeginTransaction
modDBs.CmdDBApp.CommandText = "Vacuum"
modDBs.ConnDBApp.EndTransaction
modDBs.CloseConnDB
WaitCursor(False)

End Sub

I guess the syntax is not correct but I've been looking and only find information on command line syntax

Thanks
Pagesot
Reply With Quote
  #6 (permalink)  
Old 07-23-2010, 06:44 AM
Junior Member
 
Join Date: Apr 2007
Location: Catalonia
Posts: 45
Default

Sub VacuumDB

WaitCursor(True)
modDBs.InitConnDB
modDBs.ConnDBApp.BeginTransaction
modDBs.CmdDBApp.CommandText = "Vacuum"
modDBs.ExecuteNonQuery
modDBs.ConnDBApp.EndTransaction
modDBs.CloseConnDB
WaitCursor(False)

End Sub

Try now

PepSoft
Reply With Quote
  #7 (permalink)  
Old 07-23-2010, 11:11 AM
Junior Member
 
Join Date: Jun 2010
Posts: 13
Default

Ok Pep, un milió de gràcies, he retirat també l'inici i el final de la transacció perque si no em retornava error.

Salut.!!
Jordi
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
Field of View Simontelescopium Share Your Creations 0 01-02-2010 03:24 PM
Table field title change SarahWard Questions (Windows Mobile) 4 12-25-2009 09:31 PM
Ringtone Field in Contacts Paulsche Questions (Windows Mobile) 3 06-10-2009 01:44 PM
Table field select cursor blinking Cableguy Questions (Windows Mobile) 2 11-15-2008 10:07 PM


All times are GMT. The time now is 10:49 PM.


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