Core Function LBound

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> LBound( <array/binary-array> ) </pre> === Description === Returns the index of the lowest element in an array . === Parameters === ==== array/binary-array ==== The arr...")
 
m (1 revision)
 
(2 intermediate revisions by one user not shown)
Line 24: Line 24:
  
 
=== Remarks ===
 
=== Remarks ===
 
Although this gets the highest index it may not get how many items there are in the array use [[Core Function Count|Count( <array/binary-array> )]] for that.
 
  
 
If you want the highest index instead of the lowest use [[Core Function UBound|UBound( <array/binary-array> )]] for that.
 
If you want the highest index instead of the lowest use [[Core Function UBound|UBound( <array/binary-array> )]] for that.

Latest revision as of 12:37, 14 June 2015

LBound( <array/binary-array> )

Contents

Description

Returns the index of the lowest element in an array .

Parameters

array/binary-array

The array to use.

OR

The binary variable to use.

Return Value

Success - Returns the lowest index in the array/binary-array.

Failure - Returns -1.

Remarks

If you want the highest index instead of the lowest use UBound( <array/binary-array> ) for that.

Example

$array = array ("One", "Two", "Three");
println("Lowest index is: " . LBound($array) );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox