Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Special Characters
Message
From
16/03/2004 13:25:11
 
 
To
16/03/2004 13:12:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00886756
Message ID:
00886795
Views:
20

Okay, I have got the degree symbol to insert by using a keypress event to
append chr(176) to the end of the text when pressed.
However, every time I press the function key the cursor goes to the beginning of the string.


It is a VFP problem:
when you set Value,back/forecolor,font.... properties, the SelStart is reset.
two solutions:
a)
STORE control.SelStart to nSelStart
* append chr(176)
control.SelStart = m.nSelStart+1
b)
* put chr(176) into the keyboard buffer
KEYBOARD '°'
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform