Page 1 of 1
delete a script ?
Posted: Mon Sep 26, 2011 12:35 pm
by kevin11
I have some scripts to deal with customised column behaviour for each column in a datagrid.
The property inspector allows me to add scripts for a column, and edit them, or add new columns and then a new script for that column, but how do I delete an unwanted script for a column.
Deleting the column itself leaves the script.
How do I remove these scripts please ?
Thanks
Kevin
Re: delete a script ?
Posted: Mon Sep 26, 2011 3:08 pm
by dunbarx
Scripts are a property. Might you set them to empty?
And does deleting the object (or group) that owns a script really leave the script intact? Where does that script live?
Craig Newman
Re: delete a script ?
Posted: Mon Sep 26, 2011 11:40 pm
by kevin11
dunbarx wrote:Scripts are a property. Might you set them to empty?
And does deleting the object (or group) that owns a script really leave the script intact? Where does that script live?
Craig Newman
Hi Craig,
if I create a script for a datagrid column, and do something unique in it, and then delete the column, if I recreate the column it still seems to have its script, with the added uniqueness, so the old script certainly isn't deleted when its master is deleted.
Where does that script live ? I was rather hoping you would tell me !
Also, if I have 8 columns, and column behaviour scripts for cols 1 to 4, cols 5 to 8 execute the column 4 script. If I delete col 4, cols 5 to 8 execute the column 3 script. All seems a bit odd.
Re: delete a script ?
Posted: Tue Sep 27, 2011 2:15 am
by dunbarx
I know datagrids have a mind (and body) of their own, but they are still comprised of objects and groups of objects, all native to LC. If you make an object, give it a script, and then delete that object, its script disappears as well.
So I made a datagrid and a few columns. I wrote a script for one of the column fields. When I deleted that field the script disappeared as well
Did I do what you did?
Craig Newman
Re: delete a script ?
Posted: Tue Sep 27, 2011 10:01 am
by kevin11
dunbarx wrote:Did I do what you did?
Almost. What happended when you then created the column again. Did the script come back ? Mine did.