Dear Armando
Your solution worked
oCol:bStrdata:={ || TRANSFORM(oRecSet:AbsolutePosition(),"@Z 99999") }
Dear mcfox
your solution did not work and it was giving error
oCol:bStrData:=GenProgessNumber( oBrw )
....
function GenProgressNumber( oBrw )
return {|| oBrw:nArrayAt }
So I changed your code in function GenProgressNumber( oBrw ) to
function GenProgressNumber( oBrw )
return {|| str(oBrw:nArrayAt) }
By adding str I avoided error but the progressive no in the xBrowse is always 0 in all the lines.
Thanks for your help.
I am writing it down here what I have learned and I hope that it may be useful to newbies like me and help them to reduce their learning curve. Time is valuable
So this is how we get a progressive no in xBrowse
IF Array is used in xBrowse then
oCol:bStrData:={ || oBrw:nArrayAt }
If DBF is used in xBrowse then
oCol:bStrData:={ || str( RecNo() ) } // I am doubtful here what happens if the DBF is indexed
If RecordSet is used in xBrowse
oCol:bStrdata:={ || TRANSFORM(oRecSet:AbsolutePosition(),"@Z 99999") }
OR
oCol:bStrdata:={ || str(oRecSet:AbsolutePosition() ) }
Regards
Anser