I seem to recall somewhere in the dim distant past that some languages have
a syntax where function and procedure calls can have named parameters
rather than positional ones.
function doIT p1,p2,p3,p4,p5,p6,p7,p8,p9,p10
..
..
end doIT
put doIT("abc",p3="xyz", p10="def") into tVar
When functions have a large number of possible parameters but not all of
them are required, this is a great way to avoid having to count commas in
the calls to them.
I don;t think LC has any such syntax built in but wondering if anyone has
tried to implement something similar?
Pete
lcSQL Software <http://www.lcsql.com>
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode