:aFields not updated / TDbfDataSet - bug??
Publicado: Mié Oct 07, 2015 5:58 pm
The second time you open a DBF in the same TDbfDataSet, :aFields the property is not updated.
It is correct only the first time a DBF is opened. This missing something?
note: The components (TDB DataSet, TO DataSource) were created in Designer
It is correct only the first time a DBF is opened. This missing something?
Código: Seleccionar todo
if ::oDlgOpenDBF:run()
::oDbDBF:Close()
::oDbDBF:cName:=::oDlgOpenDBF:cFileName
try
::oDbDBF:Open()
//Here you can see (:aFields) the problem by DEBUG when it opens a DBF the second time
...
catch
....
end
...
endif