Difference between revisions of "TIADelete"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure TIADelete(var TIA: TIntArray; const Index: Integer); </source> ==Availability== SCAR Divi 3.28 > Current ==Descripti...")
 
(Description)
Line 8: Line 8:
  
 
==Description==
 
==Description==
Deletes the [[Integer|integer]] at a given position '''Index''' in a given [[TIntArray]] '''TIA'''. If the index is outside of the array bounds, nothing happens.
+
Deletes the [[Integer|integer]] at a given position '''Index''' in a given [[TIntArray]] '''TIA'''. If the index is outside of the array bounds, the function throws an exception.
  
 
==Example==
 
==Example==

Revision as of 15:06, 31 March 2012

Definition

procedure TIADelete(var TIA: TIntArray; const Index: Integer);

Availability

SCAR Divi 3.28 > Current

Description

Deletes the integer at a given position Index in a given TIntArray TIA. If the index is outside of the array bounds, the function throws an exception.

Example

var
  TIA: TIntArray;

begin
  TIA := [1, 2, 3];
  TIADelete(TIA, 1);
  WriteLn(TIAToStr(TIA));
end.

Output:

1,3

See Also