Here's an odd one I've come across, and I can't figure out why this happens.
When I use an If...Then to check for a table being open, before opening it,
the if doesn't trap; it goes right to the open statement and then I get an error, "File Already Open".
Sample:
if !used('sometable')
use sometable in 0 exclu
endif
I also tried it the other way,
if used('sometable')
select sometable
else
use sometable in 0 exclu
endif
The 'if' clause fails in both places. Any ideas?
Bob Ohrstedt
Cleveland, OH
www.rjoassoc.com
Robert J. Ohrstedt
RJO Associates