Especially during a failure in the ON ERROR routine, I'd like to be able to see what files are open in every datasession...
This would be easy to do using AUSED(arr, DS_ID), except that there is no way that I can figure out how to determine which DS_ID's would be valid to check.
Since AUSED throws an error (which can't be trapped with ON ERROR if you are inside an object that has an Error method) when the DS_ID doesn't exist, I can't just try DS_ID 1 thru 10.
So, how do you determine (in VFP6) what DS's are used?
This would be easy to do using AUSED(arr, DS_ID), except that there is no way that I can figure out how to determine which DS_ID's would be valid to check.
Since AUSED throws an error (which can't be trapped with ON ERROR if you are inside an object that has an Error method) when the DS_ID doesn't exist, I can't just try DS_ID 1 thru 10.
So, how do you determine (in VFP6) what DS's are used?