Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find the shortkey and the lastkey value?
Message
 
 
To
02/12/2005 16:19:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01074037
Message ID:
01074670
Views:
16
>Nadya,
>
>How about this:
>
>oActive = ThisForm.ActiveControl
>if (vartype(m.loObject) = "O") or (vartype( m.oActive ) = 'O')
>   llReturn = (inlist(lower(justext(sys(1272, m.loObject))),"cmdcancel","cmdclose") and mdown()) OR ;
>      inlist(lower(m.oActive.Name),"cmdcancel","cmdclose")
>else
>   llReturn = .f.
>endif
>
>
>I think, you don't even have to use AMOUSEOBJ(). Use ActiveControl object is enough. But I don't know, just in case <bg>
>
>HTH

This can work as well. It doesn't answer the thread question, though.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform