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.


SQLLite staement syntax


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2008, 09:31 PM
Newbie
 
Join Date: Feb 2008
Posts: 8
Unhappy SQLLite staement syntax

Returning to Basic after 25 years using Pascal ^Delphi, so grateful for help in specifying the syntax for an SQLLite update statement in BASIC

I want to update a record in the database where the values to be inserted in the fields are numbers - so

UPDATE SITES SET LATITUDE = fltLAT,LONGITUDE = fltLONG WHERE SITE = intSITE_ID

Gloval variables are

fltLAT and fltLONG are real
intSITE is an integer

I know BASIC is very tolerant of typing, but where do the ",',& go in the string I pass to CommandText?

Thanks in advance

Peter Y
UK

Last edited by aureolevoyager : 04-02-2008 at 09:33 PM. Reason: typo
Reply With Quote
  #2 (permalink)  
Old 04-02-2008, 09:40 PM
Senior Member
 
Join Date: Mar 2008
Posts: 111
Default

try:
Quote:
mystring = "UPDATE SITES SET LATITUDE = " & fltLAT & ", LONGITUDE = " & fltLONG & " WHERE SITE = " & intSITE_ID

then execute mystring
Reply With Quote
  #3 (permalink)  
Old 04-02-2008, 10:14 PM
Newbie
 
Join Date: Feb 2008
Posts: 8
Default

Thanks..it's slowly coming back to me
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
SQLLITE, Images blobs and 2.8 markbarrett_1 Questions & Help Needed 2 11-06-2007 06:02 AM
Problem compile SQLlite manu Questions & Help Needed 12 08-02-2007 08:26 AM
Sample sqllite application anansath Code Samples & Tips 13 06-28-2007 04:44 PM
Problema SQLlite manu Spanish Forum 1 05-13-2007 06:36 PM


All times are GMT. The time now is 10:08 AM.


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