* (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
33 lines
694 B
Plaintext
33 lines
694 B
Plaintext
|
|
#require "rddsql"
|
|
#require "sddodbc"
|
|
|
|
#include "simpleio.ch"
|
|
|
|
REQUEST SDDODBC, SQLMIX
|
|
|
|
PROCEDURE Main()
|
|
|
|
#if defined( __HBSCRIPT__HBSHELL )
|
|
rddRegister( "SQLBASE" )
|
|
rddRegister( "SQLMIX" )
|
|
hb_SDDODBC_Register()
|
|
#endif
|
|
|
|
Set( _SET_DATEFORMAT, "yyyy-mm-dd" )
|
|
|
|
rddSetDefault( "SQLMIX" )
|
|
? "Connect:", rddInfo( RDDI_CONNECT, { "ODBC", "DBQ=" + hb_DirBase() + "..\..\hbodbc\tests\test.mdb;Driver={Microsoft Access Driver (*.mdb)}" } )
|
|
? "Use:", dbUseArea( .T., , "select * from test", "test" )
|
|
? "Alias:", Alias()
|
|
? "DB struct:", hb_ValToExp( dbStruct() )
|
|
Inkey( 0 )
|
|
Browse()
|
|
|
|
INDEX ON FIELD->SALARY TO salary
|
|
dbGoTop()
|
|
Browse()
|
|
dbCloseArea()
|
|
|
|
RETURN
|