removing a script from an object

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
billworld
Posts: 188
Joined: Sat Oct 25, 2008 12:32 am

removing a script from an object

Post by billworld » Fri Nov 07, 2008 12:34 am

If I set a script to a card then later remove all the lines of this script, in the App. Browser it still shows as the card having 1 line of script attached to it.

I've also tried the third party Navigator which colorizes the names of items containing scripts and here to it still thinks there's a script even after all lines have been removed.

Is there a way to truly remove a script from an item/object so RR properly shows that there's no script attached?

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Fri Nov 07, 2008 7:03 am

You can always use the Message Box and type:

Code: Select all

set the script of <object> to empty
but that may very well give you the same result; so it looks like the Application Browser may be using an internal cache to speed things up (which is good) but doesn't update this cache properly.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

billworld
Posts: 188
Joined: Sat Oct 25, 2008 12:32 am

Post by billworld » Fri Nov 07, 2008 2:20 pm

Thanks. That works. Setting this then relaunching RR clears out the App. Browser scripts line #. Just deleting all of the lines in the SE doesn't accomplish this (I was doing before). One has to specifically set the script as empty and then relaunch. Thanks.
Janschenkel wrote:You can always use the Message Box and type:

Code: Select all

set the script of <object> to empty
but that may very well give you the same result; so it looks like the Application Browser may be using an internal cache to speed things up (which is good) but doesn't update this cache properly.

Jan Schenkel.

Post Reply