common code patterns

J. Landman Gay jacque at hyperactivesw.com
Fri Aug 11 03:07:37 EDT 2017


On 8/10/17 7:42 PM, Monte Goulding via use-livecode wrote:
> Over on the Parent of Target thread we are discussing local var access so I wonder if this is a useful common pattern:
> 
> local s<Something>
> 
> command set<Something> p<Something>
>     put p<Something> into s<Something>
> end set<Something>
> 
> function get<Something>
>     return s<Something>
> end get<Something>

Yes, I use that a lot.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list