It can be done, but it's not documented very well. What little documentation there is can be found on Corel's FTP site. After connecting to it, go to /pub/Paradox/PdoxWun/unindexed and then download tu5api.zip, which contains a .DOC file and and .RTF that contains some sample ObjectPAL code for rebuilding Paradox tables.
The information itself was based on the Paradox 5.0 version of TUTILITY, but I expect you could get it to work using a more recent version with minimal effort.
Alternatively, you can also take a look at ChimneySweep (see
I don't use this myself but, if you feel like playing around with it the form tutil32.fdl is what the menu calls.
So to rebuild the answer.db with minimal user interface:
var
f form
endvar
f.open("c:\\program files\\borland\\paradox\\tutil32.fdl", winstylehidden)
f.fldTable = "riv:answer.db"
f.btnBrowse.moveto() ;to make rebuild button visible
f.btnrebuild.pushbutton()
f.close()
The user messages of the form are stored in tables in the riv: directory beginning with "__tu" and the user only sees "table rebuilt" message.
Warning: I just successfully tried this but I think it might be quite dangerous if you had a really screwed up table and an inexperienced user.
HTH,
Richie
ps. to get the object names from the delivered rebuild form, use:
f.enumobjectnames(arObjects)
arObjects.view()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.