>>Correction... now I'm seeing this even with append blank-replace cursor. Setting buffering on/off also doesn't work.
>>
>>The cursor is used for a grid, which I don't even touch, the code is in a button outside of the grid (was initially in doubleclick, same problem). The code issues a getdir() on the folder contained in one field of the grid (the other one is a logical, represented with a checkbox), and if a folder returned is different from...
>>
lcTamo=Getdir()
>> If lcTamo#cStavka
>> Replace cStavka With lcTamo ;
>> , lIde With .T.;
>> in crsRed
>> Endif
>>
>>cStavka is the field containing the folder's path. It's the replace command which gives me the problem.
>>Am I overlooking something simple?
>
>Any difference if you fully qualify everything i.e.
>
>m.lcTamo=Getdir()
>If m.lcTamo#crsRed.cStavka
> Replace crsRed.cStavka With m.lcTamo ;
> , crsRed.lIde With .T.;
> in crsRed
>Endif
>
Same as before.
>Other than that:
>
>- Is it possible the focus is on some grid element when this code runs?
Yes, and amazingly, this happens on first record only. For some reason the grid doesn't like the first record being touched.
I could put an inactive record (ie. one I can tell the user (myself) to never touch...) as the first one. Not a solution but a sign that there's a missing lid on this manh... personhole.
>- Are you running this on actual Windows, or on WINE?
wine.
>- If it's WINE, what's providing the SMB/CIFS protocol for VFP? Is it Samba?
No clue, never looked. I'd guess the former, as I never finished configuring the latter, so it would be half-baked, not on defaults and not set up. I actually gave up on in-house networking, when any technological advance is doubly set back by clashing protocols changes targeting security. So instead of once frizbee network I use thumbdrive-in-pocket-and-walk-over.