Files
harbour-core/harbour/extras/rddado/tests/access2.prg
Viktor Szakats 340318e66d 2012-07-21 19:09 UTC+0200 Viktor Szakats (vszakats syenar.net)
+ extras
  - examples
  * doc/dirstruc.txt
    * renamed 'examples' to what it is more: 'extras'
2012-07-21 17:10:27 +00:00

45 lines
848 B
Plaintext

/*
* $Id$
*/
/* Testing dbCreate() with Access database engine */
#include "adordd.ch"
REQUEST ADORDD
PROCEDURE Main()
SET DATE ANSI
SET CENTURY ON
dbCreate( "test2.mdb;table1", { { "FIRST", "C", 10, 0 },;
{ "LAST", "C", 10, 0 },;
{ "AGE", "N", 8, 0 },;
{ "MYDATE", "D", 8, 0 } }, "ADORDD" )
USE test2.mdb VIA "ADORDD" TABLE "table1"
APPEND BLANK
test2->First := "Homer"
test2->Last := "Simpson"
test2->Age := 45
test2->MyDate := Date()
APPEND BLANK
test2->First := "Lara"
test2->Last := "Croft"
test2->Age := 32
test2->MyDate := Date() + 2
GO TOP
Browse()
GO TOP
CLS
LOCATE FOR ( 'First = "Lara"' )
? "Found:", Found()
USE
RETURN