FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Database question
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Database question
Posted: Fri Oct 26, 2007 07:25 PM

Thank you.

Could you please post some code how to open a ADT file with FW.
Is there much to change necessary to convert from dbf to ADT?
Regards,
Otto

Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Database question
Posted: Fri Oct 26, 2007 07:49 PM
Hi,

   REQUEST ADS
   
   rddRegister( "ADS", 1 )
   rddsetdefault( "ADS" )

   Set SERVER <LOCAL|REMOTE>
   Set FILETYPE TO ADT //CDX or NTX

   adsConnect60( "<DICTIONARY.ADD>", <SERVER TYPE>, "<USER>", "<PASSWD>" )

   adsRightsCheck( .F. )


ADSConnect60 is used only if you are usigng dictionary, then all work in the same way, you don't need to change nothing

regards

Marcelo
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Database question
Posted: Fri Oct 26, 2007 08:00 PM

Thank you very much.
ADS offers a free server for developers to test.
I think I will install the server and have a look.
Regards,
Otto

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Database question
Posted: Sat Oct 27, 2007 11:42 PM
Otto;

Transactions works in ADS with DBFs just perfectly. Without ADS you'd have to implement the logic your self. For example:

Try

while ok
   copy record to tempfile
   delete record
   skip
endwhile

catch
  restore records to original file from tempfile
end


Hope this helps.


Reinaldo.

Continue the discussion