Hi Darren,
You are right, it was something missing in my code the \' to escape the
quote.
Thanks.
darren@crystalballinc.com wrote:
> The way you have it should work i.e. if the NEW array has a field called
> duser in it you will be able to access it using $NEW(duser)
>
> Put in an elog notice and do [array names NEW] in it.
> Run the function and see what variables are available to you then you
> should be able to call them just like shown below
>
> -bash-2.05b$ tclsh
> % set NEW(duser) darren
> darren
> % set NEW(cuser) carl
> carl
> % foreach id [array names NEW] { puts $NEW($id) }
> carl
> darren
> % puts $NEW(duser)
> darren
> % puts $NEW(cuser)
> carl