Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » elCount

elCount

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

  • long elcount(...); // if used with arrays which are function parameters
  • dword elcount(...); // in all other cases

Description

Determines the number of elements of an array. Note: The function elcount always returns 1 when called with an associative field; it is only meant for non-associative fields (arrays).

Parameters

Array of any arbitrary type.

Return Values

Number of elements.

Example

runError