ja that could work, but i think it is possible to have for example a DS 1 and the next one could be DS 1000 with nothing inbetween. i have currently in my testing a DS 1 and a DS 3, no DS 2. so that loop would have to be pretty high to try to ensure you got all. i don't know what the rules are when vfp creates new DS and related rules.
>>hi fred.
>>
>>would be nice to have Vfp7 or 8 now. I am afraid i have to find a solution for Vfp6 :(, thanks for the tip anyway.
>>
>>>>hi everybody.
>>>>
>>>>i am trying to advance my ErrorTrap and whant to include all tables currently open. i am working with private datasessions and free tables in Vfp 6.0 Sp5. to find all tables i can use
AUSED(ArrayName [, nDataSessionNumber])
but what how can i get a list (or counter) of all currently available datasessions?
>>>>
>>>>any idea out there?
>>>>your help is greatly appreatiated!
>>>
>>>VFP7 and above have an ASESSIONS() function.
>
>I was just about to add to the message that you could use a sufficiently large enough number and trap the error that the datasession doesn't exist.