Files
harbour-core/contrib/hbodbc/tests/odbccall.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

26 lines
706 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