Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAKE 'ON KEY LABEL' change active Textbox on form
Message
From
10/09/2001 02:56:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/09/2001 14:29:07
Charles Richard
Nvo Management Systems
Boisbriand, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00554266
Message ID:
00554533
Views:
9
>>Hi all,
>>
>>I like to implement a function to the ALT-P key to activate the PROPER() function on the current active TextBox on the form.
>>
>>I already tried:
>>
>>ON KEY LABEL ALT+P MyProper(ThisForm.Activecontrol.Value)
>>
>>FUNCTION(tcValue)
>>
>>Proper(tcValue)
>>
>>RETURN(.T.)
>>
>>It dit not work because the 'ThisForm.' does only works on the form itselve.
>>
>>Wat is an other way to make this work ??
>>
>>Thanks in advance,
>>
>>Theo
>
>Try the following code in the KeyPress() of the testbox
>
>****************
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nKeyCode = 25 && ALT-P
> This.Value = PROPER(This.Value)
> NODEFAULT
>ENDIF
>****************
>
>HTH

Richard,
I think Alt+Letter would bypass keypress.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform