David,
DS> Is there any way to test to see if
DS> 1. file is a valid format
Um, you mean whether or not an a tablename is a valid .DB or .DBF? If so,
try opening a TCursor on it. If it fails, then check the error message. I
believe there's a specific error code for "Not a valid table." You should be
able to use errorCode() to test that condition and react accordingly.
Otherwise, it _might_ be possible that isTable() will work as well, though I
haven't tried that for this particular use.
DS> 2. index is valid
Again, the best way is to simply try a switchIndex and check out the
errorCode() if it fails.
Hope this helps...
-- Lance
--- Maximus 2.02
---------------
* Origin: Mountain Retreat (1:216/506)
|