Difference between revisions of "TEADelete"

From SCAR Divi Manual
Jump to: navigation, search
 
Line 23: Line 23:
  
 
Output:
 
Output:
  1,3
+
  1.3,3
  
 
==See Also==
 
==See Also==

Latest revision as of 16:50, 22 May 2012

Definition

function TEADelete(var TEA: TExtArray; const Index: Integer): Extended;

Availability

SCAR Divi 3.34 > Current

Description

Deletes the extended at a given position Index in a given TExtArray TEA. The function returns the value it deleted from the array. If the index is outside of the array bounds, the function throws an exception.

Example

var
  TEA: TExtArray;

begin
  TEA := [1.3, 2.5, 3];
  TEADelete(TEA, 1);
  WriteLn(TEAToStr(TEA));
end.

Output:

1.3,3

See Also