[ Table Of Contents | Keyword Index ]

ns_adp_argc(n) 4.99 "NaviServer Built-in Commands"

NAME

ns_adp_argc - Return the number of arguments to the current ADP

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    COMMANDS
    EXAMPLES
    SEE ALSO
    KEYWORDS

SYNOPSIS

ns_adp_argc

DESCRIPTION

This command returns an integer representing the number of arguments passed to the current ADP. The number of arguments includes the name of the ADP itself, which is located at index zero.

COMMANDS

ns_adp_argc

EXAMPLES

 
   # In a.adp:
   <% ns_adp_include b.adp example a b c %>

 
   # In b.adp:
   <%
     ns_adp_argc      &nbsp;;# => 5
   %>

SEE ALSO

nsd

KEYWORDS

ns_adp_abort, , ns_adp_append, , ns_adp_argv, , ns_adp_bind_args, , ns_adp_break, , ns_adp_debug, , ns_adp_debuginit, , ns_adp_dir, , ns_adp_dump, , ns_adp_eval, , ns_adp_exception, , ns_adp_include, , ns_adp_mime, , ns_adp_mimetype, , ns_adp_parse, , ns_adp_puts, , ns_adp_registeradp, , ns_adp_registerproc, , ns_adp_registertag, , ns_adp_return, , ns_adp_safeeval, , ns_adp_stats, , ns_adp_stream, , ns_adp_tell, , ns_adp_trunc