TIP: Click on subject to list as thread! ANSI
echo: paradox
to: DAVID SHERMAN
from: LANCE LEONARD
date: 1995-03-31 01:39:00
subject: Paradox file

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.