>>>>Now I need to get value of the curTest.SomeField. I can not change MakeCursor method in any way.
>>>
>>>And you don't need to!
>>>
>>>Set DataSession To oAppObj.DataSessionId
>>>Select MyTable
>>>loRetData = Createobject('Empty')
>>>AddProperty( loRetData, 'records', Reccount() )
>>>If Reccount() > 0
>>> AddProperty( loRetData, Textmerge( 'Row[<< reccount() >>]' ))
>>> Scan
>>> Scatter Name loRetData.Row[recno()]
>>> Endscan
>>>Endif
>>>set datasession to this.DataSessionID
>>>messagebox( loRetData.Row[1].SomeField )
>>>
Cetin
>>
>>The other constraint - the reason I started this thread - is to avoid switching datasessions.
>
>I thought it was a baseless request. OK do it however you want as I said before:)
>Cetin
I noticed a problem before that when I switch DS in a form, some listboxes may lose their recordsources.
If it's not broken, fix it until it is.
My Blog