Data Validation of copied Data in a field
Hillen Richard
mail at richard-hillen.de
Fri Oct 9 12:26:59 EDT 2015
Thank you for your quick and helpfull response:
To Craig Newman:
- textChanged is sent after each typed character; DataValidation should start after the end of Typing; so it needs extra coding :-(
- Hint re "pasteKey trapped by IDE" will help.
To Bob Sneidar:
- The CloseFiled msg is sent after pressing return, tab or…
-> press return after pasting data or use pasteKey-msg! I´ll try!
Richard.
>
> Message: 6
> Date: Fri, 9 Oct 2015 08:54:36 -0400
> From: dunbarx at aol.com
> To: use-livecode at lists.runrev.com
> Subject: Re: Data Validation of copied Data in a field
> Message-ID: <1504caad8e9-714a-32491 at webprd-m73.mail.aol.com>
> Content-Type: text/plain; charset=utf-8
>
> Why not use the "textChanged" message? It does not care about the method that the user might use to, er, change the text.
>
>
> On the other point, did you mean the "pasteKey" message? This is trapped by the IDE unless you turn off development tools. Check out the "Development" menu.
>
>
> Craig Newman
>
> Message: 12
> Date: Fri, 9 Oct 2015 14:38:39 +0000
> From: Bob Sneidar <bobsneidar at iotecdigital.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: Re: Data Validation of copied Data in a field
> Message-ID: <430AB2D9-1BF3-40B5-B8C4-CAD8891021C6 at iotecdigital.com>
> Content-Type: text/plain; charset="utf-8"
>
> Are you saying that the closefield is not triggered when you leave the field after pasting text??? Very odd! You can use the textChanged message, but that will get triggered every time someone types text. That would be very hard to work with, timing loops and all.
>
> Try setting a breakpoint in your closeField handler then pasting text into the field. I have a hard time believing closeField is not being triggered.
>
> Bob S
>
>
> -----Original Message-----
> From: Hillen Richard <mail at richard-hillen.de>
> To: use-livecode <use-livecode at lists.runrev.com>
> Sent: Fri, Oct 9, 2015 8:34 am
> Subject: Data Validation of copied Data in a field
>
>
> Hello list,
>
> until now I used the closefield message to validate data typed into
> a field.
> This worked until someone copied the data into the input field.
>
> To
> validate such copied data too, I look for a method / message to trigger the data
> validation after pasting.
> But I didn?t find a solution.
> There is a message
> ?passkey? which I didn?t get it to work.
>
> May you help?
>
> Richard.
> (LC 6.7.4 on
> OS X 10.10)
> _______________________________________________
> use-livecode mailing
> list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe,
> unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> ———————————————
More information about the use-livecode
mailing list