translation to..Tdatabase
Posted: Tue Sep 03, 2019 2:59 pm
I have these lines how I can to converte it into tdatabase ?
I try with
olotto2:= TDatabase():Open( , "LOTTO2", "DBFCDX", .T. )
olotto2:setorder(1)
olotto2:gotop()
oLotto2:ArraytoDbf(aData)
but not run ok
I tried also with
Local cFieldList:="data,ruota,n1,n2,n3,n4,n5"
oLotto2:ArrayToDBF( aData, cFieldList,nil , .t., .t. )
but make errors
Code: Select all
USE LOTTO2.DBF NEW ALIAS DST
DST->( FW_ArrayToDBF( aData ) )
DST->( DBGOTOP() )
I try with
olotto2:= TDatabase():Open( , "LOTTO2", "DBFCDX", .T. )
olotto2:setorder(1)
olotto2:gotop()
oLotto2:ArraytoDbf(aData)
but not run ok
I tried also with
Local cFieldList:="data,ruota,n1,n2,n3,n4,n5"
oLotto2:ArrayToDBF( aData, cFieldList,nil , .t., .t. )
but make errors
Code: Select all
Application
===========
Path and name: C:\Work\Errori\lotto_tdatabase\test.Exe (32 bits)
Size: 3,821,056 bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20180217)
FiveWin version: FWH 19.05
C compiler version: Borland/Embarcadero C++ 7.3 (32-bit)
Windows version: 6.2, Build 9200
Time from start: 0 hours 0 mins 23 secs
Error occurred at: 03-09-2019, 17:21:55
Error description: Error BASE/1001 Undefined function: ARRAYTODBF
Args:
[ 1] = A { ... } length: 63349
[ 2] = C data,ruota,n1,n2,n3,n4,n5
[ 3] = U
[ 4] = L .T.
[ 5] = L .T.
Stack Calls
===========
Called from: => ARRAYTODBF( 0 )
Called from: => HB_EXECFROMARRAY( 0 )
Called from: .\source\classes\DATABASE.PRG => TDATABASE:ARRAYTODBF( 1427 )