Files
harbour-core/harbour/contrib/hbodbc/tests/odbccall.prg
Viktor Szakats 00c09ce91f 2010-12-08 21:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/debug/debugger.prg
  * contrib/hbodbc/tests/odbccall.prg
  * contrib/hbblat/tests/blattest.prg
  * contrib/hbgd/gd.prg
  * contrib/hbtip/tests/tipmail.prg
  * examples/rddado/adordd.prg
  * examples/httpsrv/cgifunc.prg
    * Eliminated using WITH OBJECT.
    % Some optimizations, little fixes.

  * tests/omacro.prg
    * Formatting.
2010-12-08 20:54:55 +00:00

34 lines
782 B
Plaintext

/*
* $Id$
*/
#include "simpleio.ch"
PROCEDURE Main()
LOCAL cConStr
LOCAL dsFunctions
cConStr := "DBQ=" + hb_FNameMerge( hb_DirBase(), "test.mdb" ) + ";Driver={Microsoft Access Driver (*.mdb)}"
dsFunctions := TODBC():New( cConStr )
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