Hi,
cool, just what I was looking for. I need to pass several values and in
that case using the number type is not so good, right now I used string
and decompose afterwards but a table is better
off topic:
in that case you could have done:
n.value = "return {ht = 100, wd = 10}"
t = load(n.value)() -- or loadstring depending on lua version
which is quite ok performance wise
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------