Page 1 of 1

Converting DBT to Fpt

Posted: Wed Feb 02, 2022 10:20 am
by Silvio.Falconi
any solution ?

Re: Converting DBT to Fpt

Posted: Wed Feb 02, 2022 10:54 am
by Silvio.Falconi
I tried this

Code: Select all | Expand


Function Main()
   local cDirOld:= ".\dataold\"
   local cDir:= "
.\data\"

   REQUEST DBFCDX
   REQUEST DBFFPT

   use &(cDirOld+'AnaCF')
   copy to &(cDir+'AnaCF') via "
DBFCDX"
   use &(cDir+'AnaCF')
   xbrowse()

Return nil


and run but is there a function to converting all dbfs ? I have many dbf ...:)

Re: Converting DBT to Fpt

Posted: Wed Feb 02, 2022 11:04 am
by Antonio Linares
Directory() and a loop :-)