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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.

Missing step in SQL tutorial...

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-19-2010, 08:53 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default Missing step in SQL tutorial...

... but not in sample code.

Tutorial says:
Code:
   If Reader.ReadNextRow = False Then

      
' No table with this name in the database.

      
' Create one.

      Command.CommandText = 
"CREATE TABLE t_orders (ID INTEGER PRIMARY KEY, Sum REAL, TableNum INTEGER," & _
      
"SeatNum INTEGER, Hamburger INTEGER, French INTEGER, Coke INTEGER, Water INTEGER, " & _
      
"isServed INTEGER, Time TEXT)"

      Reader.Close

      Command.ExecuteNonQuery

   
Else

      
'Close reader anyhow

      Reader.Close

   
End If
whereas the code has the necessary extra line (as I discovered when I tried to run the code, and was explained by the desktop IDE message)
Code:
        ' No table with this name in the database. 
' Create one. But first close the reader.
Reader.Close
Mike.
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
Request: A step-by-step tutorial to create a B4A library susu Libraries developers questions 12 07-26-2011 04:15 PM
SIP missing RacingDog Bug Reports 0 12-04-2010 08:02 PM
Map calibration step 1 wolfgang Code Samples & Tips 2 01-09-2008 02:37 PM
A graphics program (first step) forisco Code Samples & Tips 1 12-23-2007 05:11 AM
Missing DLL willisgt Questions (Windows Mobile) 1 12-13-2007 04:23 AM


All times are GMT. The time now is 04:19 PM.


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