Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does GetFldState() return 2 for memo fields
Message
From
17/01/2008 04:58:00
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Firebird
Miscellaneous
Thread ID:
01282378
Message ID:
01282501
Views:
7
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Tore
>
>>Don't use keyboard(), it can have side effects. This code in KeyPress is better
>>If nKeyCode=13
>>   NoDefault
>>   DoDefault(9,nShiftAltCtrl)
>>EndIf
>
>It did not work for me, the cursor stays put in the field.
>
>Thanks.

Try
If nKeyCode=13
   this.lostfocus()
EndIf
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform