Database question

User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

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
Marcelo Via Giglio
Posts: 1033
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Post by Marcelo Via Giglio »

Hi,

Code: Select all


   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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

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
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Post by reinaldocrespo »

Otto;

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

Code: Select all

Try

while ok
   copy record to tempfile
   delete record
   skip
endwhile

catch
  restore records to original file from tempfile
end

Hope this helps.


Reinaldo.
Post Reply