Files
harbour-core/harbour/extras/hbapollo/tests/test01.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

39 lines
784 B
Plaintext

/*
* $Id$
*/
/*
Demo Creating DBF and Append Blank Records
Using SDENSX
*/
#include "sixapi.ch"
#include "simpleio.ch"
PROCEDURE MAIN()
LOCAL cFile := "sixtest.dbf"
LOCAL aStruct := { { "TEST","C",10,0 }, { "MYDATE","C",8,0 }, { "MYNUM","N",8,0 }, { "MYLOGIC","L",1,0 } }
LOCAL j, n := seconds(), nArea
? SX_VERSION()
CREATE DBF cFile STRUCT aStruct VIA SDENSX
USE cFile ALIAS MYALIAS VIA SDENSX VAR nArea EXCLUSIVE
? "-----------------------------------"
? "Test Appending 10,000 Blank Records"
? "-----------------------------------"
? "Area : ", nArea
? "RDD : " + sx_rddDriver( nArea )
? "Start : ", n
for j := 1 TO 10000
APPEND BLANK
next
CLOSE ALL
? "End : ", seconds()
? "Time : ", seconds() - n