VirtualArray.Max(Variable) Method

Top 

Description

Returns the maximum value in the array and stores its position in the passed 'index' argument.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

VirtualArray.Max(

Variable index)

 

 

Arguments

index


Description:

The index of the maximum element will be stored here. If there are multiple maximum entries, the first entry found will be returned.

 

 

 

Return Value

Type:

number

 

 

Returns the maximum value in the array.

 

Syntax

myVariable1 = {1,2,3,4}.Max(myVariable2);

 

 

See also

VirtualArray Object

VirtualArray.Max