Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catching F9 and F10 keys in modal form
Message
From
11/03/2017 04:45:02
 
 
To
11/03/2017 04:25:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01648923
Message ID:
01648931
Views:
29
>your code in keypress event in principe fires an error :
>nkeycode is an integer and messagebox must receive a string :
>
>messagebox(nkeycode)
>must be turned on messagebox(trans(nkeycode))
>
>

Just a side note: this is a VFP beauty, you can pass any kind of data as the first parameter of MESSAGEBOX(), even objects. The TRANSFORM() is implicit (of course, what we can't do is to mix data types in the expression, for instance "Keycode: " + nKeycode).
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform