Difference between revisions of "OffsetTIA"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure OffsetTIA(var TIA: TIntArray; const Offset: Integer); </source> ==Availability== SCAR Divi 3.34 > Current ==Descript...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==Definition==
+
#REDIRECT [[TIAAdd]]
<source lang="scar" lines="false">
 
procedure OffsetTIA(var TIA: TIntArray; const Offset: Integer);
 
</source>
 
 
 
==Availability==
 
SCAR Divi 3.34 > Current
 
 
 
==Description==
 
Offsets the given [[TIntArray]] '''TIA''' by '''Offset'''.
 
 
 
==Example==
 
<source lang="scar">
 
var
 
  TIA: TIntArray; 
 
 
begin
 
  TIA := [5, -7, 1, 6, 88];
 
  OffsetTIA(TIA, 5); 
 
  WriteLn(TIAToStr(TIA));
 
end.
 
</source>
 
 
 
Output:
 
10,-2,6,11,93
 
 
 
<!--==See Also==
 
*[[OffsetATPA]]-->
 
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:TIA Functions]]
 
[[Category:TIA Functions]]
 
[[Category:Array Functions]]
 
[[Category:Array Functions]]

Latest revision as of 17:47, 10 December 2012

Redirect to: