Remove Button from Group

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Remove Button from Group

Post by warrenk » Thu Nov 20, 2008 8:24 pm

How can I remove one button from a group of fields and buttons?

Thanks!
Warren

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Nov 20, 2008 8:34 pm

Hi Warren,

That's very simple:

Code: Select all

delete btn x of grp y
Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Thu Nov 20, 2008 11:20 pm

Would this also work Mark if he has the name of the button:

Code: Select all

delete button "buttonNameHere"

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Nov 20, 2008 11:37 pm

Hi Garrett,

Of course, you can replace btn x and grp y with any valid reference to that button or that group. If the name of the button is unique, a reference to the button suffices and you won't need to refer to the group.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply