TIAAdd

From SCAR Divi Manual
Revision as of 17:51, 10 December 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure TIAAdd(var TIA: TIntArray; const Addition: Integer); </source> ==Availability== SCAR Divi 3.38 > Current ===Alias...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

procedure TIAAdd(var TIA: TIntArray; const Addition: Integer);

Availability

SCAR Divi 3.38 > Current

Aliases

  • OffsetTIA (SCAR Divi 3.34 > Current)

Description

Adds a given value Addition to every value in the TIntArray TIA. A function with extended functionality is available as TIAAddEx.

Example

var
  TIA: TIntArray;  
 
begin
  TIA := [5, -7, 1, 6, 88];
  TIAAdd(TIA, 5);  
  WriteLn(TIAToStr(TIA));
end.

Output:

10,-2,6,11,93

See Also