[Implemented] UseODBCDatabase() must be called...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

[Implemented] UseODBCDatabase() must be called...

Post by Marco2007 »

Code: Select all

#db=0

db = OpenDatabase(#db, "psp", "", "") 
  If db
    If DatabaseQuery(#db, "select * from Knummer")
    Else
       MessageRequester("SQL-Fehler", DatabaseError())
    EndIf   
  Else
      MessageRequester("SQL-Fehler", DatabaseError())
  EndIf

I`m not shure (that`s why I post it here), but I think in 4.02 there was "Initdatabase() must be called"...or something like that...anyway it would be good, if such an error would be displayed.