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
   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
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 )Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com