Skip to main content

paramCount

Type​

function

Summary​

Returns the number of parameters passed to the current handler.

Syntax​

the paramCount
paramCount()

Description​

Use the paramCount function to find out how many parameters were passed to the current handler.

The paramCount function returns the number of parameters passed to the current handler. If no parameters were passed, the paramCount function returns zero.

Examples​

the paramCount
repeat with thisParam = 1 to the paramCount

Value​

NameTypeDescription

return

The paramCount function returns a non-negative integer.

control structure: on, setProp, getProp, function

function: variableNames, param, params

glossary: pass, handler, parameter, return, non-negative

keyword: dollar, integer

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?