On 3/24/17 1:03 PM, Bob Sneidar via use-livecode wrote:
constant cModeList = "uppercase,lowercase,numbers,custom" constant cCustomChars = "!#$%&'*+-/=?^_`{|}~.@"on dragDrop put cleanASCII(the dragData ["text"], cModeList, cCustomChars) into me exit to top end dragDrop
The first thing to try would be replacing "exit to top" with "pass dragdrop". If you don't pass the command, the drop doesn't happen.
Everything below is off the top of my head, untested, but here are some general ideas.
If "pass" doesn't work, try: on dragDrop put the dragData ["text"] into tText set the dragData ["text"] to cleanASCII(tText, cModeList, cCustomChars) pass dragDrop end dragDrop And if that doesn't work, try: on dragDrop put the dragData ["text"] into tText send "cleanUp tText" to me in 0 pass dragDrop end dragDrop on cleanUp pText put cleanASCII(me, cModeList, cCustomChars) into me end cleanUp -- Jacqueline Landman Gay | [email protected] HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
