Hello,
I have not been able to test latter versions due to a lack of time.
I think we should use always HBRECNO, as it麓s not a common field name like ID, which is the one I use. In fact, SQLRDD from xHarbour.com uses a private field for such purpouses.
I also think ADORDD should be able to create "tables", with dbcreate.
In fact, to achieve the equal behaviour as DBFCDX, index auto open should be present.
And the user should
only do two little changes:
Define at FUNCTION ListIndex() the indexes. They will be opened with SET INDEX TO INDEX1, INDEX2, INDEX3... if SET AUTOPEN is OFF.
Define globally with a SetUp ADORDD function the RBDM type (Access, MSSQL, MySQL..), the server, the user name, the password to connect and the database name.
That麓s all.
DbCreate now needs to pass some extra parameeters with ;. Once the above function is created, DBcreate should work as ordinary in DBFCDX:
DbCreate( <cDatabase> , ;
聽 聽 聽 聽 聽 <aStructure>, ;
聽 聽 聽 聽 聽[<cDriver>] 聽, ;
聽 聽 聽 聽 聽[<lNewArea>] , ;
聽 聽 聽 聽 聽[<cAlias>] 聽 聽 ) --> NIL
Thank you.
Muchas gracias. Many thanks.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producci贸n]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.