ad_ns_set_to_tcl_vars

EveAndersson.com : API Browser : ad_ns_set_to_tcl_vars

ad_ns_set_to_tcl_vars (public)

ad_ns_set_to_tcl_vars [ -duplicates duplicates ] [ -level level ] \
    set_id
Defined in packages/acs-core/utilities-procs.tcl

Takes an ns_set and sets variables in the caller's environment correspondingly, i.e. if key is foo and value is bar, the Tcl var foo is set to bar.

Switches:
-duplicates (defaults to "overwrite") - This optional switch argument defines what happens if the Tcl var already exists, or if there are duplicate entries for the same key. overwrites just overwrites the var, which amounts to letting the ns_set win over pre-defined vars, and later entries in the ns_set win over earlier ones. ignore means the variable isn't overwritten. fail will make this proc fail with an error. This makes it easier to track subtle errors that could occur because of unpredicted name clashes.
-level (defaults to "1") - The level to upvar to.

Parameters:
set_id
Author:
Lars Pind <lars@pinds.com>
[ show source ]

Show another procedure:

eve@eveandersson.com