Thanks Tore!
I forgot to say that I want to avoid to save the work area and then restore it
like you suggested.
Sergey provided a tricky way to do that.
lcAlias=select()
Select yourcursor
count for !deleted() to lndeleted
select (lcAlias)
>
>>Hi.
>>I have a cursor created in the following way:
>>
>>AFIELDS(oEstru2, 'louvores')
>>CREATE CURSOR NovaLouvores FROM ARRAY oEstru2
>>
>>
>>After DELETED some records I need to know the quantity of records not deleted.
>>SET DELETE is ON.
>>I can't use RECCOUNT because if returns deleted+undeleted. So I'm using
>>
>>count for !deleted()
>>
>>
>>The problem is that COUNT operates only in the current work area. Can't point to an 'Alias'.
>>Is it possible to do that in other way?
>>Thanks!
***
TONY Nascimento
*****************
"Your mind is like a parachute. It only works if it is open" - Anthony J. D'Angelo
"The desire to know is natural to good men" - Leonardo da Vinci