Files
harbour-core/harbour/tests/testrdd.prg
Viktor Szakats 6dde6b10fe 2012-10-04 17:11 UTC+0200 Viktor Szakats (harbour syenar.net)
* tests/aliaslck.prg
  * tests/files.prg
  * tests/inherit.prg
  * tests/newrdd.prg
  * tests/omacro.prg
  * tests/testcdx.prg
  * tests/testdbf.prg
  * tests/testrdd.prg
  * tests/testrdd2.prg
  * tests/tstuse.prg
  * tests/wcecon.prg
    ! fixed to deleted test dbfs/indexes/dirs created along the way
    ! misc other corrections
2012-10-04 15:18:50 +00:00

44 lines
1.1 KiB
Plaintext

/*
* $Id$
*/
PROCEDURE Main()
LOCAL aRdd := rddList()
LOCAL aStruct := { { "CHARACTER", "C", 25, 0 }, ;
{ "NUMERIC", "N", 8, 0 }, ;
{ "DOUBLE", "N", 8, 2 }, ;
{ "DATE", "D", 8, 0 }, ;
{ "LOGICAL", "L", 1, 0 } }
REQUEST DBFCDX
SET EXCLUSIVE OFF
QOut( "Registered RDD's:", LTrim( Str( Len( aRdd ) ) ), "=>" )
AEval( aRdd, {| cDriver | QQOut( "", cDriver ) } )
QOut()
rddSetDefault( "DBFCDX" )
dbCreate( "testdbf", aStruct, "DBFCDX" )
dbUseArea( , , "testdbf.dbf", "ALIAS_1" )
? Bof()
dbSelectArea( 2 )
dbUseArea( , "SDF", "testdbf.dbf", "ALIAS_2" )
dbSelectArea( 3 )
dbUseArea( , "DELIM", "testdbf.dbf", "ALIAS_3" )
? Eof()
dbSelectArea( 4 )
dbUseArea( , "DBFNTX", "testdbf.dbf", "ALIAS_4" )
? Found()
dbGoBottom()
dbGoto( 1 )
dbSelectArea( 5 )
dbUseArea( , "DBF", "testdbf.dbf", "ALIAS_5" )
dbGoTop()
dbSkip()
dbCloseArea()
dbCloseAll()
hb_dbDrop( "testdbf",, "DBFCDX" )
RETURN