Inheritance and Custom Properties

François Chaplais francois.chaplais at mines-paristech.fr
Tue Apr 21 14:53:56 EDT 2009


Le 21 avr. 09 à 12:38, David Bovill a écrit :

> In general it's good not to use "do" for repeated actions because of  
> its
> speed. I've actually not done a speed test, but I'm pretty sure  
> calling a
> custom prop directly (see below) is much faster.
>
> Also using message inheritance will be much faster than repeating  
> manually
> through all the controls in the hierarchy. This won't matter for one- 
> offs -
> but I use these techniques for geometry management and they need to  
> be as
> fast as possible (without sacrificing ease of scripting or  
> maintenance).
>
> .....
>
> Actually you don't need to use "do' dick. One of the great things  
> about
> custom properties is that you can do this:
>
> put "test_Prop" into myCustomPropvar
>> put the myCustomPropvar of btn 1
>>
>
> You can also do this with params:  so in Dicks case
>
> put pCustomPropertySetName & "[" & quote & pCustomPropertyName &  
> quote & "]
>> into myCustomPropvar
>> put the myCustomPropvar of tRevObject into tValue
>>

good to know... Thanks, David
>
> There used to be a bug in which you had to be careful about spaces  
> with the
> param passed - not sure if it is still there - email me if you get  
> problems
> and I'll dig it out.
>




More information about the use-livecode mailing list