[ Previous ] [ Contents ] [ Index ] [ Next ]

ns_adp_bind_args

Overview

Bind ADP arguments to names

Syntax

ns_adp_bind_args var1 ?var2? ?...?

Description

This function copies the arguments from the current ADP frame to the local variable names specified in var1, var2, etc. You must bind the same number of arguments in the ns_adp_bind_args function that were passed into the ADP. Attempting to bind any other number of arguments results in an error.

Example

This function invokes the ADP in foo.adp with two arguments, bar and baz:

    ns_adp_include foo.adp bar baz

In foo.adp, the two arguments are bound as follows:

    ns_adp_bind_args x y

The value "bar" is assigned to the variable x, and the value "baz" is assigned to the variable y.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.