FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour dbinfo.ch header file
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
dbinfo.ch header file
Posted: Sun Oct 23, 2022 12:41 AM
Hello friends,
I only discovered this file today.
Best regards,
Otto

Code (fw): Select all Collapse
include "fivewin.ch"

REQUEST DBFCDX
REQUEST DBFFPT

function main
    ? "nInfoType determines the type of information, as specified by the constants below. Note, however, that not all constants are supported for all RDDs. These constants are defined in the dbinfo.ch header file, which must be included (#include) in your application."


    use ("customer2.dbf") new
    ?   rddInfo(10)
    ?   rddInfo(14)
 
    GOTO 1
    ? "DBRI_RAWRECORD    " + DBRECORDINFO( 7 )
    ? "DBRI_RAWMEMOS     " + DBRECORDINFO( 8 )
    ? "DBRI_RAWDATA      " + DBRECORDINFO( 9 )
    
return 

INIT PROCEDURE PrgInit
    
    SET CENTURY ON
    SET EPOCH TO YEAR(DATE())-98
    
    SET DELETED ON
    SET EXCLUSIVE OFF
    
    REQUEST HB_Lang_DE
    
    HB_LangSelect("DE")
    
    SET DATE TO GERMAN
    
    rddsetdefault( "DBFCDX" )
    
    EXTERN DESCEND
    
RETURN

//----------------------------------------------------------------------------//

Continue the discussion