See CURSORGETPROP with 'Database' as property - returns empty string for free tables. I think the table must be open, when the function is called.
Mike
"I can live with doubt and uncertainty and not knowing. I think it is much more interesting to live not knowing than to have answers that might be wrong." - Richard Feynman