Nadya,
Cursorgetprop() accepts a work area number as a parameter (instead of alias). Try:
lcDBC=cursorgetprop('database',select(m.tcAlias))
>>What difference does it matter what alias you open it under? The only thing that matters is the default value function call, and the only thing that matters is that you use a unique value:
>>
>>getNextID("thisMustBeDifferentForEveryTable--butDoesNotNecessarilyHaveToBeTableNameOrAlias")
>>
>>I don't see anywhere where you try to select the alias in your getNextID() function, so it should not matter...
>>
>
>Here is the call:
>
>lcDBC=cursorgetprop('database',m.tcAlias) && Return the name of owning database
>
Steve Gibson