>This is probably a fairly basic level question, but here goes...
>
>Occasionally I will encounter a situation where the Used() function will return .f. for a table/cursor being in use, but attemting to then use the tested table fails with a "file is in use" error. The problem is intermittent.
>
>What would cause this to occur?
used() with a text parameter asks whether you have an alias open, not the table. That is, if you open a table with another alias, for example:
Use January alias SomeMonth
used("january") should return .F.; used("SomeMonth") should return .T.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)