On Wed, Oct 10, 2018 at 7:10 PM Ken McGinnis <[email protected]> wrote:
> The problem is when you have something (more than 50 char) in your
> clipboard and you ctrl V (paste) in the text box to force the text
> window to come up - the crazy stuff happens. Something about pasting is
> different from manually typing.
I would guess the routine checking input string length is KeyPress, and
KeyPress is launching the new form?
I wonder if, in effect, pasting is firing KeyPress for each character, so
you're triggering the routine repeatedly, which is "blocking something."
How about adding a property to the textbox, say, lStringFull, defaulted to
.F. that you flip to .T, on the 50th character, then change the logic at
the beginning of the KeyPress to:
if ! THIS.lStringFull && already triggered
if len(THIS.Value) >=50
THIS.lStringFull = .T.
endif
<do your routine>
endif && already triggered
--
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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/cacw6n4ucm-mnfywwos5agsrsvmx-iw+oag6oszovuzow3e+...@mail.gmail.com
** 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.