Sytze de Boer wrote:
This is beginning to really annoy me and I really need some help
In one of my apps I have a form with an Edit1 box which has an
InteractiveChange event as follows
thisform.text2.value=len(alltrim(This.value))
thisform.text2.Refresh()
The Edit box behaves without any issues or problems
I have another App with a completely different form, but it also has a Edit
box
In the InteractiveChange event it has
thisform.label9.caption="Characters:
"+ALLTRIM(STR(len(alltrim(This.value))))
thisform.label9.Refresh()
After entering some data, and you press Enter, it adds a line (or I think
it does), but the cursor remains in the same position
If I type the following, the labels tells me Characters: 38
The big brown dog jumped over the moon
If I press Enter after the last letter (n), the message changes to 40 (and
42,44,46 everytime I press enter, but the cursor stays directly next to the
last letter (n)
Pressing space bar is fine
Any clues anyone ?
Just created a form with an edit box to do the same thing and works
fine. In the interactive change I have:
thisform.label1.Caption = ALLTRIM(STR(LEN(this.Value))) + ' Characters'
Pressing enter adds 2 chars (carriage return and line feed) and the
cursor moves down a line.
You could try commenting your code and see if it makes a difference.
Maybe you have a keypress event doing something with the enter key?
Try adding a new editbox to the form and see if you can enter data into
that, then add the interactive change.
Peter
----------------------------------------------------------------
Rajan Imports has changed - we are now Whispering Smith Ltd. For more
information see our website at www.whisperingsmith.com
Please update your address book with my new email address:
[email protected]
.
This communication is intended for the person or organisation to whom it is addressed. The contents are confidential and may be protected in law. Unauthorised use, copying or
disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.
www.whisperingsmith.com
Whispering Smith Ltd
Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700
Fax:0161 831 3715
London Office:17-19 Foley Street, London W1W 6DW Tel:0207 299 7960
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.