>>Hey all,
>>
>>is there a way to determine the number of views that are open in a datasession ? And is there a way to know in which work area eacht view is opened ??
>>
>>Greetz,
>>Hans
>
>aused() will create an array of open aliases - but you can't specifically distinguish which ones are tables, and which ones are views. To get this latter information, you may want to investigate with the dbf() function.
Also, if you just want to check whether a specific view is already open, you can the USED() function. Assuming you didn't re-assign the alias.
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)