New Delete Feature

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

New Delete Feature

Post by dunbarx » Thu Jun 25, 2015 3:48 pm

I did not want to place this in the "Feature Requests" area. Perhaps there should be a new tab, "Undocumented Features"? I cannot access (again) the user notes area of the dictionary or I would add it.

On a new card, make six buttons. In the script of the FIRST button:

Code: Select all

on mouseUp
delete btn 3 and btn 4
end mouseUp
Of course all valid LC stuff works as well. Who knows what evil lurks in the heart of LC commands...

Craig Newman

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: New Delete Feature

Post by Simon » Thu Jun 25, 2015 10:42 pm

Cool

Code: Select all

on mouseUp
   delete btn 3 and btn 3
end mouseUp
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

SparkOut
Posts: 2949
Joined: Sun Sep 23, 2007 4:58 pm

Re: New Delete Feature

Post by SparkOut » Thu Jun 25, 2015 11:01 pm

Aaaaaaaaaaaarrrrrrrrgghhh!
Scary

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10057
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: New Delete Feature

Post by FourthWorld » Fri Jun 26, 2015 12:16 am

Works with "select" too.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: New Delete Feature

Post by sturgis » Thu Jul 16, 2015 9:59 pm

Wow, scary. And its not new as of 5.5.5.

And yep. 3 buttons on the card, executing delete button 1 and button 1 and button 1 from the msg box kills all 3. Scary, but nifty too.

Post Reply