Files
harbour-core/harbour/tests/testrdd.prg
Viktor Szakats 58255adfe5 2011-09-07 18:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* doc/howtosvn.txt
    + added extra rules to "1.3 Here's how to format your ChangeLog entries"
      section.
    * Change markup is not optional anymore, pls stick to it.

  * contrib/hbcups/tests/test.prg
  * contrib/hbcups/readme.txt
    + Added more test code and extra info to hbcups.
      Update provided by Dr. Claudia Neumann (with my minor fixes/formatting).
      Many thanks!

  * contrib/hbpgsql/rddcopy.c
  * contrib/hbpgsql/hbpgsql.h
    ! svn props

  * tests/testtok.prg
  * tests/testrdd.prg
  * tests/tstchbx.prg
  * tests/tstblock.prg
  * tests/ticktime.prg
  * tests/testvars.prg
  * tests/tstasort.prg
  * tests/testprof.prg
  * tests/testread.prg
  * tests/testrpt.prg
  * tests/teststr.prg
    * formatting.
2011-09-07 16:33:53 +00:00

43 lines
1.0 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()
RETURN