Hi,
somebody knows how to copy a local view from one DBC to a nother one? I
have to do it programatically because enduser has been enambled to change
the view on the first DBC and I need to make sure that the second one is
identical
up to date I have tried copying the corresponding records from the DBC using
the following code
use (rutadest+"\aedb.dbc")
append from (rutaorig+"\aedb.dbc") for objectname = "vcalif "
set filter to objectname = "vcalif "
go top
wobjectid = objectid
set filter to
append from (rutaorig+"\aedb.dbc") for parentid = wobjectid
use
However, when I try to open the database I get an error message " database
is corrupted and this can not be fixed using validate database command
I also tried changing the objecid of the view with a very big number (to
avoid duplicates) but it did not fix the trouble
select 0
use (rutadest+"\aedb.dbc")
append from (rutaorig+"\aedb.dbc") for objectname = "vcalif "
set filter to objectname = "vcalif "
replace objectid with 999999
go top
wobjectid = objectid
set filter to
append from (rutaorig+"\aedb.dbc") for parentid = wobjectid
use
I really would appreciate any help
Oscar Taboada