Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Special Characters
Message
From
16/03/2004 15:46:27
 
 
To
16/03/2004 15:20:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00886756
Message ID:
00886848
Views:
11
>The following code in the KeyPress event of the edit box will not work:
>
>If nKeyCode = -6 Then
>
>This.Value = SubStr(This.Value,1,ThisForm.nSelStart) + Chr(176) + SubStr(This.Value,ThisForm.nSelStart+1,Len(This.Value))
>
>This.selStart = ThisForm.nSelStart + 1
>
>EndIf
>
>The cursor still goes back to place 0.

You have to isseu the NODEFAULT inside your IF statement. But I think that Tore's answer is the best so far.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform