Files
harbour-core/contrib/hbmemio/tests/test.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

21 lines
376 B
Plaintext

#require "hbmemio"
REQUEST HB_MEMIO
PROCEDURE Main()
LOCAL tmp
dbCreate( "mem:test", { { "F1", "N", 9, 0 } }, , .T., "memarea" )
FOR tmp := 1 TO 1000
dbAppend()
FIELD->F1 := hb_Random() * 1000000
NEXT
INDEX ON FIELD->F1 TAG f1
dbEval( {|| QOut( FIELD->F1 ) } )
dbCloseArea()
dbDrop( "mem:test" ) /* Free memory resource */
RETURN