I have an application that I want to use Stonefield to reindex my tables programmatically. The program recreates the DBC and tables from a gendbcx program, appends data into the new tables and then reindexes them.
The below listed code is what I call for the reindex but I receive an error that says "unknown member osdtmgr" when I call it from the program. Reading the Stonefield docs the dbcxmgr is supposed to automatically instantiate the sdtmgr class.
open database lcTheWorkDir+"\"+"LW"
SET CLASSLIB TO DBCXMGR additive
oMeta = newobject('DBCXMgr', 'DBCXMGR.VCX')
oMeta.SetDatabase(dbc())
oMeta.oSDTMgr.lQuiet = .T.
oMeta.oSDTMgr.Reindex('ALL', .T.,.T.)
Anyhelp is appreciated.
TIA,
Wayne Frenck