Re: Access to an element of array NEW in TCL

From: Josué Maldonado <josue(at)lamundial(dot)hn>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Access to an element of array NEW in TCL
Date: 2003-09-03 17:27:42
Message-ID: bj58a4$1dq7$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Darren,

You are right, it was something missing in my code the \' to escape the
quote.

Thanks.

darren(at)crystalballinc(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ian Barwick 2003-09-03 17:56:03 Re: YOUR SITES SEARCH FEATURE DOES NOT WORK!
Previous Message Bruce Momjian 2003-09-03 17:22:28 Re: Web page for selecting presentations