Martin,
> Any using
MESSAGEBOX() in
When() method faces to strange behavior.
Exactly. That's what I found out as well.
> Sorry,but you redirect text to statusbar.
I already found a workaround (see the "Update:" part in my message). If you're simulating a space bar key press in the GotFocus event, and are not doing things like displaying message boxes again in the When event (what isn't necessary in my case), you are on the right item afterwards.
Thanks,
Armin
>
> MartinJ
>
>>Hi,
>>
>>> Add in method
List1.When(): debugout recno() .
>>> If you use property
Value or
DisplayValue or array
List() etc. in methods
When() or
GotFocus() then VFP dosn't skip to right record in tables.
>>
>>thanks for your reply! But my intention is *to have* a message box in the When event. Not for displaying the current item, but for more usefull things.
>>
>>Armin