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.


Error compiling 6.01


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-14-2008, 11:22 AM
Junior Member
 
Join Date: May 2007
Posts: 43
Default Error compiling 6.01

this line:

cmd.CommandText = "SELECT Tipo,Data,Motivo FROM Calendario WHERE Data >= '" & aai & "-" & RiempiStringa(mmi,2) & "-" RiempiStringa(ggi,2) & "' AND Data <= '" & aaf & "-" & RiempiStringa(mmf,2) & "-" & RiempiStringa(ggf,2) & "' ORDER BY Tipo,Data"

compiling 6.01 syntax error

compiling 5.80 all OK

why?
Reply With Quote
  #2 (permalink)  
Old 01-14-2008, 11:54 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

You are missing an ampersand (in bold) which is the usual source of this problem. Also you may be missing a single quote at the very end of the string.
Quote:
Originally Posted by magi6162 View Post
cmd.CommandText = "SELECT Tipo,Data,Motivo FROM Calendario WHERE Data >= '" & aai & "-" & RiempiStringa(mmi,2) & "-" & RiempiStringa(ggi,2) & "' AND Data <= '" & aaf & "-" & RiempiStringa(mmf,2) & "-" & RiempiStringa(ggf,2) & "' ORDER BY Tipo,Data"
Reply With Quote
  #3 (permalink)  
Old 01-14-2008, 01:54 PM
Junior Member
 
Join Date: May 2007
Posts: 43
Default

I use SQLite and string SQL all OK
if i compile with b4ppc 5.8 all OK
Reply With Quote
  #4 (permalink)  
Old 01-14-2008, 02:03 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by magi6162 View Post
I use SQLite and string SQL all OK
if i compile with b4ppc 5.8 all OK
That still doesn't alter the fact that you ARE missing an ampersand as I indicated! 5.80 will compile without it 6.01 will not!
Reply With Quote
  #5 (permalink)  
Old 01-14-2008, 04:13 PM
Junior Member
 
Join Date: May 2007
Posts: 43
Default

All ok

tnkyvm
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
Error after compiling J12345T Questions & Help Needed 6 10-23-2008 12:59 AM
Compiling error to device Net 2.0 bparent Questions & Help Needed 2 10-13-2008 07:23 PM
ERROR on compiling superbabicka Questions & Help Needed 9 08-17-2008 07:56 AM
Error when compiling borderless Questions & Help Needed 2 11-14-2007 06:36 PM
Outlook.dll error after compiling Graley Questions & Help Needed 1 09-14-2007 06:30 PM


All times are GMT. The time now is 05:45 AM.


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