Hi Steve,
>If I have to close about 12 different tables and repeat your tip 12 times, would it make more sense to do a DO CASE ... ENDCASE using your tip without the IF...ENDIF, but with the rest of the code?
Unfortunatly, no. A CASE exists once a CASE is .T., so, it would only close one table, then none, example:
do case
case .t.
wait window '1'
case .t.
wait window '2'
endcase
if .t.
wait window '3'
endif
if .t.
wait window '4'
endif
You will only see 1, 3, 4. Does that make sense? I see what you were getting at though, just less typing :-)