>>From the way I read it, you need to use the DataSessionID property.
>
>But. . . there doesn't seem to be any way to simply say 'the next available
>one', and it appears that you need to do some kind of loop to learn which
>are "alive" (and thus which might be "free" to use.
>
>Looks like a missing command option that someone should include in the Wish
>List.
I've given that one up long ago. I've tried to find a way to create a DS
programmatically - sometimes I'd just like to call a routine (not method, but
why not method) which could reopen the tables for its own, using a parallel DS,
not disturbing anything in the caller's DS. No way, unless someone found it in
the meantime. OTOH, any form designed for using private DE automatically using,
guess what, 'the next available one'. It means there's a function in VFP
(similar to select(0)) which pick 'the next available one', it's just not
revealed to mortals. Most certainly a candidate for Wish List (subclassed from
general Wish List item "reveal all the functions available to wizards and
menus").