I think you can *simulate* doing it directly.
Your install to tutil32.fdl may be elsewhere, so you need to find it first.
Someone may come along later with a direct implementation using tutil32.dll,
but the below should work.
var
f form
ay anytype
endvar
f.open("C:\\Program
files\\Corel\\Paradox7\\tutil32.fdl",winstyledefault+winstylehidden)
f.fldTable="c:\\testing\\subdir\\tablename.db" ; use your own table here
f.btnBrowse.moveTo()
ay=f.fldblocksize.value
f.enumobjectnames(ar)
f.close()
ay.view()
--
--
Paradox Support http://www.thedbcommunity.com/support/
Tony McGuire
"We act as though comfort and luxury were the chief requirements in life,
when all we really need to be happy is something to be excited about."
Charles Kingsley
_____________
Someone may come along later with a direct implementation using tutil32.dll,
but the below should work.
var
f form
ay anytype
endvar
f.open("C:\\Program files\\Corel\\Paradox7\\tutil32.fdl",
winstyledefault+winstylehidden)
f.fldTable="c:\\testing\\subdir\\tablename.db" ; use your own table here
f.btnBrowse.moveTo()
ay=f.fldblocksize.value
--
....
`·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney
Yuri Korin
"Rodney Wise" <NoMoreSpamP...@ars-florida.com> wrote in message
news:4107240c_1@cnews...
I know you didn't ask for it, but below is the main portions of the table
info available from the tutility form.
Included is the language to pull the current running version of Paradox, and
retrieve the appropriate Registery entry to get the path to the tutil32.fdl
file.
This should work in P7 (32 Bit) thru P10, at least.
var
f form
stPath,
stCompany string
arVersion array[] string
dyTableInfo dynarray[] anytype
endvar
breakapart(version(),arVersion,".")
if arVersion[1]="7" then
stCompany="Borland"
else
stCompany="Corel"
endif
stPath=getregistryvalue("Software\\"+
stCompany+
"\\Paradox\\"+arVersion[1]+".0\\Experts\\09\\CoreUI\\TableRepair","File
Name",
regkeycurrentuser)
f.open(stPath,winstyledefault+winstylehidden)
f.fldTable="c:\\testing\\subdir\\tablename.db"
f.btnBrowse.moveTo()
dyTableInfo["TableName"]=f.fldTable
dyTableInfo["SortOrder"]=f.fldSortOrder
dyTableInfo["CodePage"]=f.fldCodePage
dyTableInfo["ReadOnly"]=f.fldReadOnly
dyTableInfo["TimeStamp"]=f.fldTimeStamp
dyTableInfo["BlockSize"]=f.fldBlockSize
dyTableInfo["FileFormat"]=f.fldFileFormat
dyTableInfo["RecordSize"]=f.fldRecSize
dyTableInfo["NumberFields"]=f.fldNumFields
dyTableInfo["NumberRecords"]=f.fldNumRecs
f.close()
dyTableInfo.view("Table Info")
Yuri Korin
"Tony McGuire" <cng.paradoxcommunity@com> wrote in message
news:410793ae$1_2@cnews...
>
>
> I know you didn't ask for it, but below is the main portions of the table
> info available from the tutility form.
>
> Included is the language to pull the current running version of Paradox,
and
> retrieve the appropriate Registery entry to get the path to the
tutil32.fdl
> file.
>
> This should work in P7 (32 Bit) thru P10, at least.
>
..
..
..
..
..
..> f.close()