Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EditBox
Message
 
 
To
21/03/2003 10:03:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00768567
Message ID:
00768575
Views:
18
>I am useing an EditBox to enter a drawing title into my table. After the title is input there are extra chractors in the string, two heavey vertical bars. This causes a problem when I need to include this string in SPT. How can I strip these charactors?

Most likely it's the end of line combination CRLF. Try
* Editbox LostFocus
This.Value = CHTRAN(This.Value, CHR(13)+CHR(10), "")
*Or Editbox Keypress
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode=13
  NODEFAULT
ENDIF
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform