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.

What am I overlooking?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-31-2007, 11:12 PM
Senior Member
 
Join Date: Jun 2007
Location: Netherlands (Arnhem)
Posts: 107
Awards Showcase
Beta Tester 
Total Awards: 1
Default What am I overlooking?

Code:
fCtciDat = 1
sqlCmd = 
"Select Alias from Locs As l outer join Sess As s on l.Ndx = s.Ndx Where s.sSes >= '" & fCtciDat & "' AND s.eSes <= '" & fCtciDat & "'"
After executing the above code, sqlCmd has the value "The XML was improperly formatted. Please escape it if necessary"

Do I overlook something? I don't see it.
If there is something wrong in formatting a string I would expect a runtime error message, not a completely different value in my string!

Scub
__________________
PPC: IPAQ 2210, 2GB, CF GPS, CF Wireless
Mobile: Samsung Omnia I900 (WM6.1)
Reply With Quote
  #2 (permalink)  
Old 11-01-2007, 01:00 AM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 160
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Take it apart into it's components & feed them through the SQL parser one additional step at a time until it complains. It could be something in the format of your variable.
Reply With Quote
  #3 (permalink)  
Old 11-01-2007, 01:07 AM
Senior Member
 
Join Date: Jun 2007
Location: Netherlands (Arnhem)
Posts: 107
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by LineCutter View Post
Take it apart into it's components & feed them through the SQL parser one additional step at a time until it complains. It could be something in the format of your variable.
I'm just filling a string with a value. I took the string in parts and when the <= comes in the value of the SqlCmd string is changed with the XML error.

SqlCmd could also be named JustAString with the same result.

SQL has nothing to do with it at this point.

Scub
__________________
PPC: IPAQ 2210, 2GB, CF GPS, CF Wireless
Mobile: Samsung Omnia I900 (WM6.1)
Reply With Quote
  #4 (permalink)  
Old 11-01-2007, 05:06 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This is not the value of SQLCmd.
There is a bug in the IDE that causes this message (it tries to parse the string as XML because of the > sign).
It is fixed in the next version.
You can check its value in the watches fields.
Reply With Quote
  #5 (permalink)  
Old 11-01-2007, 11:17 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 160
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I hate it when Erel is better at this than me, even if I did beat him to replying
Reply With Quote
  #6 (permalink)  
Old 11-02-2007, 09:12 PM
Senior Member
 
Join Date: Jun 2007
Location: Netherlands (Arnhem)
Posts: 107
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by LineCutter View Post
I hate it when Erel is better at this than me, even if I did beat him to replying
He's fast and always points to the right direction. The 'error' is gone anyway in the new release. My mistake was stopping the debugger after the strange string value the debugger gave me. Blame it at working to late ....
__________________
PPC: IPAQ 2210, 2GB, CF GPS, CF Wireless
Mobile: Samsung Omnia I900 (WM6.1)
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


All times are GMT. The time now is 02:17 AM.


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