>>>I would set focus on the button before collecting data in the cursor. It must work.
>>
>>I'll try one more time. In the meantime I looked at
How to pass cursor between two VFP datasessions (without using XML) FAQ #29297 and it's a bit too complex. Perhaps cursortoxml would be easier in my case.
>
>I just saw this message so I hv to clarify it little bit.
>Solution is generic, so after you dump set of functions with class definition into some visible library of yours - you are left with just two functions to use;
>
>
>.
>oCarrier=Cur2Obj('SourceCursor')
>*to 'compress' cursor into object carrier
>oSomeForm.receive_and_decompress(oCarrier)
>.
>
>
>After you passed it to another session or form with private datasession
>you simply use oposite function to 'decompress' cursor within target data session.
>
>
>
>lparameters oCursor
>=Cur2Obj(oCursor,'TargetCursor')
>
>
>What is so complex in this case ?
>Perhaps will hv to amend FAQ to explain usage little bit better.
>Solution might be a bit 'funny' but usage is quiet simple :)
>
>HTH
Nothing too complex. Perhaps just my unability to read long code samples <g> BTW, it two places in your code you do not need to use macro and may just use name expression. I always prefer to use name expression if there is a choice.
If it's not broken, fix it until it is.
My Blog