Difference between revisions of "TIAAdd"
From SCAR Divi Manual
(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...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | procedure TIAAdd(var TIA: TIntArray; const | + | procedure TIAAdd(var TIA: TIntArray; const Value: Integer); |
</source> | </source> | ||
Line 11: | Line 11: | ||
==Description== | ==Description== | ||
− | Adds a given value ''' | + | Adds a given value '''Value''' to every value in the [[TIntArray]] '''TIA'''. A function with extended functionality is available as [[TIAAddEx]]. |
==Example== | ==Example== | ||
Line 30: | Line 30: | ||
==See Also== | ==See Also== | ||
*[[TIAAddEx]] | *[[TIAAddEx]] | ||
+ | *[[TIASubtract]] | ||
+ | *[[TIAMultiply]] | ||
+ | *[[TIADivide]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:TIA Functions]] | [[Category:TIA Functions]] | ||
[[Category:Array Functions]] | [[Category:Array Functions]] | ||
+ | [[Category:Math Functions]] |
Latest revision as of 16:34, 12 December 2012
Definition
procedure TIAAdd(var TIA: TIntArray; const Value: Integer);
Availability
SCAR Divi 3.38 > Current
Aliases
- OffsetTIA (SCAR Divi 3.34 > Current)
Description
Adds a given value Value 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