Listers,

I'm kludging together a program that allows me to query a pair of tables,
and produce a map of all the water wells in a basin that have water level
data for a specified month and year (eg October 1985). At the moment the
program assumes that no tables are open, and prompts the user for the pair
of tables using the File Open Dialog. I'd like to modify the program so that
it first checks to see if either or both of the two necessary tables are
open, and skips the File Open Dialog if they are.

I've thought about putting the File Open Dialogs in a pair of Sub
procedures, but I'm having trouble figuring out how to trigger these Subs. I
know the Table Info command will generate an error if the table isn't open,
but is there a way to combine OnError with Call such that the Call command
is skipped if there's no error?

Is there a better strategy for dealing with this?

TIA,

_____________________________
Tim Warman
Geologist & GIS Specialist
Richard C. Slade & Associates
North Hollywood, CA
(818) 506-0418

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to