Files
harbour-core/contrib/hbodbc/tests/odbccall.prg
Przemysław Czerpak 96ca3fe470 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* Makefile
  * config/*
  * contrib/*
  * doc/*
  * extras/*
  * include/*
  * lib/*
  * package/*
  * src/*
  * tests/*
  * utils/*
    * removed empty lines left after removed '$' + 'Id' + '$' identifiers
2014-01-21 20:41:05 +01:00

25 lines
705 B
Plaintext

#require "hbodbc"
PROCEDURE Main()
LOCAL dsFunctions := TODBC():New( "DBQ=" + hb_FNameMerge( hb_DirBase(), "test.mdb" ) + ";Driver={Microsoft Access Driver (*.mdb)}" )
dsFunctions:SetSQL( "SELECT * FROM test" )
dsFunctions:Open()
? dsFunctions:FieldByName( "First" ):Value
? dsFunctions:Skip()
? dsFunctions:FieldByName( "First" ):Value
? dsFunctions:GoTo( 1 )
? dsFunctions:FieldByName( "First" ):Value
? dsFunctions:Prior()
? dsFunctions:FieldByName( "First" ):Value
? dsFunctions:First()
? dsFunctions:FieldByName( "First" ):Value
? dsFunctions:Last()
? dsFunctions:FieldByName( "First" ):Value
? dsFunctions:Close()
dsFunctions:Destroy()
RETURN