Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Box
Message
From
05/03/2002 10:17:23
 
 
To
05/03/2002 03:15:26
Ashish Patel
Hindustan Petroleum
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00628249
Message ID:
00628406
Views:
15
Ashish,

Here is yet another way to change keystrokes from one value to another. This is only an example...you can keep a couple of strings to serve hold a list of 'convert from' characters and 'convert to' characters. You also have to deal with uppercase and lowercase issues.
* keypress() method
LPARAMETERS nKeyCode, nShiftAltCtrl

if nKeyCode = asc('A')
	nKeyCode = asc('X')
endif
nodefault
dodefault(nKeyCode, nShiftAltCtrl)
>Hi
>
>I want to display someother characters as soon as user keys-in.
>
>E.g. If user keyis in "A" it should give "X".
> For "B" it should display "Z"
>
>This is because I want to create a text box which displays indian font.
>And when user's key's in "A" I will capture "A" and related character will
>be displayed in text box.
>
>In this How I will be able to take care of Backspace ?
>
>I tried kypress Event.
>But it doesn't work properly.
>
>Thanks in Advance.
>
>Ashish
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform