Hi guys,
when I tried to compile with BCC7.7 and Harbour I get unresolved external for dbCopyStruct().
The function is in which lib? For now I use __dbCopyStruct() instead
TIA
COPY STRUCTURE TO cnewdbf
method dbCopyStruct(cDataBase, aFieldList) inline ( ::cAlias )->(__dbCopyStruct(cDataBase, aFieldList))
// C:\FHW\SAMPLES\DBSTRUCT.PRG
#include "FiveWin.ch"
// Require: RDD.LIB
FUNCTION Main()
/*
// Create a new file that contain part of the original structure
LOCAL aList
USE TEST
aList := { "STATE" }
// dbCopyStruct( "ONLYNAME.dbf", aList ) // xHarbour only
__dbCopyStruct( "ONLYNAME.dbf", aList ) // Harbour / xHarbour
*/
// .and.
// Open a database, then copy its structure to a new file,
// Open the new file and list all its records
USE Test
// dbCopyXStruct( "TestStru" ) // xHarbour Only
__dbCopyXStruct( "TestStru" ) // xHarbour .AND. Harbour
USE TestStru
BROWSE()
RETURN NIL
// FIN / END
Harbour:
C:\HBBCC74\src\rdd
03/04/2020 19:58 5.900 dbstrux.prg
xHarbour:
C:\XHBBCC74\source\rdd
25/02/2020 13:20 13.638 dbstrux.prg
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 39 guests