https://wiki.scar-divi.com/api.php?action=feedcontributions&user=Freddy&feedformat=atom
SCAR Divi Manual - User contributions [en]
2024-03-29T07:42:29Z
User contributions
MediaWiki 1.29.0
https://wiki.scar-divi.com/index.php?title=SCAR_Divi_Online_Manual&diff=1999
SCAR Divi Online Manual
2017-08-03T12:45:54Z
<p>Freddy: </p>
<hr />
<div>'''Welcome to the online manual for [[SCAR Divi]].''' This manual attempts to better document the [[SCAR Divi]] API and functionality. All information in this manual is only 100% accurate for SCAR Divi 3.25 and above.<br />
<br />
Currently the manual is still largely under construction, you can possibly find things that are not yet documented in the [http://scar-divi.com/oldmanual/ old manual].<br />
<br />
==Download==<br />
[[SCAR Divi]] can be downloaded on the [http://www.scar-divi.com/download main site].<br />
<br />
==Support==<br />
In the event that you require support for [[SCAR Divi]] 3.25+ regarding anything from using the program to creating your own scripts, you can ask questions in the appropriate sections of the [http://forums.scar-divi.com forums].<br />
<br />
==Topics==<br />
All topics in the manual are available in the [[:Category:Topics|topics]] category. Some of the pages in the manual will contain source code fragments from SCAR's source to clarify how the functions work. These fragments are 100% Delphi code, some of them might not work in SCAR.<br />
<br />
Some of the more important topics are:<br />
===API===<br />
*[[:Category:Functions|Functions]]<br />
*[[:Category:Types|Types]]<br />
*[[:Category:Classes|Classes]]<br />
*[[:Category:Constants|Constants]]<br />
*([[:Category:Deprecated Functions|Deprecated Functions]] & [[:Category:Deprecated Types|Deprecated Types]])<br />
<br />
===Other===<br />
*[[:Category:Language|Language]]<br />
*[[:Category:Tutorials|Tutorials]]<br />
<br />
==FAQ==<br />
People ask a lot of questions about [[SCAR Divi]], some of the more frequent ones are also available on this wiki on the [[FAQ]] page.<br />
<br />
==External Links==<br />
*[http://www.scar-divi.com Main Site]<br />
*[http://forums.scar-divi.com Forums]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=Int64&diff=1998
Int64
2015-11-26T12:09:53Z
<p>Freddy: Created page with "==Availability== SCAR Divi 3.00 > Current ==Description== Integer is a basic signed type which can hold a 64-bit value or 8-byte value. These values are part of the range [-9..."</p>
<hr />
<div>==Availability==<br />
SCAR Divi 3.00 > Current<br />
<br />
==Description==<br />
Integer is a basic signed type which can hold a 64-bit value or 8-byte value. These values are part of the range [-9223372036854775808, 9223372036854775807].<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
Value: Int64;<br />
<br />
begin<br />
Value := 5 + 6;<br />
if Value = 11 then<br />
WriteLn('5 + 6 = 11')<br />
else<br />
WriteLn('5 + 6 <> 11');<br />
end.<br />
</source><br />
<br />
Output:<br />
5 + 6 = 11<br />
<br />
==See Also==<br />
*[[Int64ToStr]]<br />
*[[StrToInt64]]<br />
<br />
[[Category:Types]]<br />
[[Category:Basic Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=ReadInterSCARInt64&diff=1997
ReadInterSCARInt64
2015-11-26T12:08:05Z
<p>Freddy: Created page with "==Definition== <source lang="scar" lines="false"> function ReadInterSCARInt64(const Id: AnsiString): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Descripti..."</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function ReadInterSCARInt64(const Id: AnsiString): Integer;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.00 > Current<br />
<br />
==Description==<br />
Allows SCAR to used shared memory to read messages sent by itself or other instances of SCAR. The '''Id''' parameter represents a channel used for the communication, like a port for TCP sockets. The message is read and converted to an [[int64]] which is returned. If the channel did not contain an int64, 0 is returned.<br />
<br />
==Example==<br />
<source lang="scar"><br />
begin<br />
SendInterSCARInt64('Test', 5);<br />
Wait(1000);<br />
WriteLn(ReadInterSCARInt64('Test'));<br />
end.<br />
</source><br />
<br />
Output:<br />
5<br />
<br />
==See Also==<br />
*[[SendInterSCARInt4]]<br />
*[[ReadInterSCARMessage]]<br />
*[[ReadInterSCARBoolean]]<br />
*[[ReadInterSCARExtended]]<br />
*[[ReadInterSCARInteger]]<br />
<br />
[[Category:Functions]]<br />
[[Category:ISM Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=ReadInterSCARExtended&diff=1996
ReadInterSCARExtended
2015-11-26T12:06:39Z
<p>Freddy: Created page with "==Definition== <source lang="scar" lines="false"> function ReadInterSCARExtended(const Id: AnsiString): Extended; </source> ==Availability== SCAR Divi 3.00 > Current ==Descr..."</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function ReadInterSCARExtended(const Id: AnsiString): Extended;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.00 > Current<br />
<br />
==Description==<br />
Allows SCAR to used shared memory to read messages sent by itself or other instances of SCAR. The '''Id''' parameter represents a channel used for the communication, like a port for TCP sockets. The message is read and converted to an [[extended]] which is returned. If the channel did not contain an extended, 0 is returned.<br />
<br />
==Example==<br />
<source lang="scar"><br />
begin<br />
SendInterSCARExtended('Test', 5.4321);<br />
Wait(1000);<br />
WriteLn(ReadInterSCARExtended('Test'));<br />
end.<br />
</source><br />
<br />
Output:<br />
5.4321<br />
<br />
==See Also==<br />
*[[SendInterSCARExtended]]<br />
*[[ReadInterSCARMessage]]<br />
*[[ReadInterSCARBoolean]]<br />
*[[ReadInterSCARInteger]]<br />
*[[ReadInterSCARInt64]]<br />
<br />
[[Category:Functions]]<br />
[[Category:ISM Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=ReadInterSCARBoolean&diff=1995
ReadInterSCARBoolean
2015-11-26T12:04:49Z
<p>Freddy: Created page with "==Definition== <source lang="scar" lines="false"> function ReadInterSCARBoolean(const Id: AnsiString): Boolean; </source> ==Availability== SCAR Divi 3.00 > Current ==Descrip..."</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function ReadInterSCARBoolean(const Id: AnsiString): Boolean;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.00 > Current<br />
<br />
==Description==<br />
Allows SCAR to used shared memory to read messages sent by itself or other instances of SCAR. The '''Id''' parameter represents a channel used for the communication, like a port for TCP sockets. The message is read and converted to a [[boolean]] which is returned. If the channel did not contain an boolean, true is returned.<br />
<br />
==Example==<br />
<source lang="scar"><br />
begin<br />
SendInterSCARBoolean('Test', False);<br />
Wait(1000);<br />
WriteLn(BoolToStr(ReadInterSCARBoolean('Test')));<br />
end.<br />
</source><br />
<br />
Output:<br />
False<br />
<br />
==See Also==<br />
*[[SendInterSCARBoolean]]<br />
*[[ReadInterSCARMessage]]<br />
*[[ReadInterSCARInteger]]<br />
*[[ReadInterSCARExtended]]<br />
*[[ReadInterSCARInt64]]<br />
<br />
[[Category:Functions]]<br />
[[Category:ISM Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=FindWindows&diff=1994
FindWindows
2013-10-18T20:39:27Z
<p>Freddy: /* Description */</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function FindWindows(const Title: string): THwndArray;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.35 > Current<br />
<br />
==Description==<br />
Finds all windows that have the title specified by '''Title'''. The title is case-sensitive! An extended version of this function is available as [[FindWindowsEx]].<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
Wnds: THwndArray;<br />
Idx, Len: Integer;<br />
<br />
begin<br />
Wnds := FindWindows('Untitled - Notepad');<br />
Len := Length(Wnds);<br />
for Idx := 0 to Len - 1 do<br />
WriteLn(Wnds[Idx]);<br />
end.<br />
</source><br />
<br />
==See Also==<br />
*[[FindWindowsEx]]<br />
*[[FindWindowsPreg]]<br />
*[[FindWindowsBySize]]<br />
<br />
[[Category:Functions]]<br />
[[Category:Window Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TPARemoveEx&diff=1993
TPARemoveEx
2013-08-28T11:03:45Z
<p>Freddy: </p>
<hr />
<div>{{OpenAPI|TPA|TPARemoveEx}}<br />
<br />
==Definition==<br />
<source lang="scar" lines="false"><br />
procedure TPARemoveEx(var TPA: TPointArray; const Point: TPoint; const All: Boolean);<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
===Aliases===<br />
*TPARemovePointEx (SCAR Divi 3.26 > 3.35)<br />
<br />
==Description==<br />
Removes the first occurrence of a given [[TPoint]] '''Point''' in a [[TPointArray]] '''TPA''' if '''All''' is [[false]]. If '''All''' is [[true]], it will remove every occurrences of '''Point'''.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TPA: TPointArray;<br />
<br />
begin<br />
TPA := [Point(0, 0), Point(2, 2), Point(4, 5), Point(2, 2), Point(5, 10)];<br />
TPARemoveEx(TPA, Point(2, 2), True);<br />
WriteLn(TPAToStr(TPA));<br />
end.<br />
</source><br />
<br />
Output:<br />
(0,0);(4,5);(5,10)<br />
<br />
==See Also==<br />
*[[TPARemove]]<br />
*[[TPADelete]]<br />
*[[TPAUnique]]<br />
*[[TPAAppend]]<br />
*[[TPAInsert]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TPA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TPARemove&diff=1992
TPARemove
2013-08-28T10:45:14Z
<p>Freddy: </p>
<hr />
<div>{{OpenAPI|TPA|TPARemove}}<br />
<br />
==Definition==<br />
<source lang="scar" lines="false"><br />
procedure TPARemove(var TPA: TPointArray; const Point: TPoint);<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
* Before SCAR Divi 3.28, TPARemove performed the function of [[TPADelete]].<br />
<br />
===Aliases===<br />
*TPARemovePoint (SCAR Divi 3.26 > 3.35)<br />
<br />
==Description==<br />
Removes the first occurrence of a given [[TPoint]] '''Point''' in a [[TPointArray]] '''TPA'''. An extended function with additional functionality is available as [[TPARemoveEx]].<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TPA: TPointArray;<br />
<br />
begin<br />
TPA := [Point(0, 0), Point(2, 2), Point(4, 5), Point(2, 2), Point(5, 10)];<br />
TPARemove(TPA, Point(2, 2));<br />
WriteLn(TPAToStr(TPA));<br />
end.<br />
</source><br />
<br />
Output:<br />
(0,0);(2,2);(4,5);(5,10)<br />
<br />
==See Also==<br />
*[[TPARemoveEx]]<br />
*[[TPADelete]]<br />
*[[TPAUnique]]<br />
*[[TPAAppend]]<br />
*[[TPAInsert]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TPA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=Template:OpenAPI&diff=1991
Template:OpenAPI
2013-08-28T10:44:45Z
<p>Freddy: Created page with "<div style="margin:0 auto;width:800px;text-align:center;padding:5px;border:#BBB 2px solid">Additional and more up-to-date information can be found in the OpenAPI Documentation..."</p>
<hr />
<div><div style="margin:0 auto;width:800px;text-align:center;padding:5px;border:#BBB 2px solid">Additional and more up-to-date information can be found in the OpenAPI Documentation for [http://openapi.scar-divi.com/index.htm?OpenAPI.{{{1}}}.{{{2}}}.htm {{{2}}}]</div></div>
Freddy
https://wiki.scar-divi.com/index.php?title=TPARemoveEx&diff=1990
TPARemoveEx
2013-08-28T09:43:01Z
<p>Freddy: /* Example */</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
procedure TPARemoveEx(var TPA: TPointArray; const Point: TPoint; const All: Boolean);<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
===Aliases===<br />
*TPARemovePointEx (SCAR Divi 3.26 > 3.35)<br />
<br />
==Description==<br />
Removes the first occurrence of a given [[TPoint]] '''Point''' in a [[TPointArray]] '''TPA''' if '''All''' is [[false]]. If '''All''' is [[true]], it will remove every occurrences of '''Point'''.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TPA: TPointArray;<br />
<br />
begin<br />
TPA := [Point(0, 0), Point(2, 2), Point(4, 5), Point(2, 2), Point(5, 10)];<br />
TPARemoveEx(TPA, Point(2, 2), True);<br />
WriteLn(TPAToStr(TPA));<br />
end.<br />
</source><br />
<br />
Output:<br />
(0,0);(4,5);(5,10)<br />
<br />
==See Also==<br />
*[[TPARemove]]<br />
*[[TPADelete]]<br />
*[[TPAUnique]]<br />
*[[TPAAppend]]<br />
*[[TPAInsert]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TPA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TPARemoveEx&diff=1989
TPARemoveEx
2013-08-28T09:31:19Z
<p>Freddy: /* Description */</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
procedure TPARemoveEx(var TPA: TPointArray; const Point: TPoint; const All: Boolean);<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
===Aliases===<br />
*TPARemovePointEx (SCAR Divi 3.26 > 3.35)<br />
<br />
==Description==<br />
Removes the first occurrence of a given [[TPoint]] '''Point''' in a [[TPointArray]] '''TPA''' if '''All''' is [[false]]. If '''All''' is [[true]], it will remove every occurrences of '''Point'''.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TPA: TPointArray;<br />
<br />
begin<br />
TPA := [Point(0, 0), Point(2, 2), Point(4, 5), Point(2, 2), Point(5, 10)];<br />
TPARemovePointEx(TPA, Point(2, 2), True);<br />
WriteLn(TPAToStr(TPA));<br />
end.<br />
</source><br />
<br />
Output:<br />
(0,0);(4,5);(5,10)<br />
<br />
==See Also==<br />
*[[TPARemove]]<br />
*[[TPADelete]]<br />
*[[TPAUnique]]<br />
*[[TPAAppend]]<br />
*[[TPAInsert]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TPA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TPARemove&diff=1988
TPARemove
2013-08-28T09:20:39Z
<p>Freddy: /* Description */</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
procedure TPARemove(var TPA: TPointArray; const Point: TPoint);<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
* Before SCAR Divi 3.28, TPARemove performed the function of [[TPADelete]].<br />
<br />
===Aliases===<br />
*TPARemovePoint (SCAR Divi 3.26 > 3.35)<br />
<br />
==Description==<br />
Removes the first occurrence of a given [[TPoint]] '''Point''' in a [[TPointArray]] '''TPA'''. An extended function with additional functionality is available as [[TPARemoveEx]].<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TPA: TPointArray;<br />
<br />
begin<br />
TPA := [Point(0, 0), Point(2, 2), Point(4, 5), Point(2, 2), Point(5, 10)];<br />
TPARemove(TPA, Point(2, 2));<br />
WriteLn(TPAToStr(TPA));<br />
end.<br />
</source><br />
<br />
Output:<br />
(0,0);(2,2);(4,5);(5,10)<br />
<br />
==See Also==<br />
*[[TPARemoveEx]]<br />
*[[TPADelete]]<br />
*[[TPAUnique]]<br />
*[[TPAAppend]]<br />
*[[TPAInsert]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TPA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TPAAppend&diff=1987
TPAAppend
2013-08-21T15:13:54Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
procedure TPAAppend(var TPA: TPointArray; const Point: TPoint);<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
*Before 3.34 the function had no result. <br />
<br />
==Description==<br />
Appends the given [[TPoint]] '''Point''' to end of the given TPointArray '''TPA'''. The index of the appended element is returned.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TPA: TPointArray;<br />
<br />
begin<br />
TPA := [Point(0, 0), Point(1, 1), Point(3, 3)];<br />
WriteLn(TPAAppend(TPA, Point(4, 4)));<br />
WriteLn(TPAToStr(TPA));<br />
end.<br />
</source><br />
<br />
Output:<br />
3<br />
(0,0);(1,1);(3,3);(4,4)<br />
<br />
==See Also==<br />
*[[TPAInsert]]<br />
*[[TPADelete]]<br />
*[[TPARemove]]<br />
*[[TPARemoveEx]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TPA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TPAAppend&diff=1986
TPAAppend
2013-08-21T15:10:38Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
procedure TPAAppend(var TPA: TPointArray; const Point: TPoint);<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
*Before 3.34 the function had no result. <br />
<br />
==Description==<br />
Appends the given [[TPoint]] '''Point''' to end of the given TPointArray '''TPA'''. The index of the appended element is returned.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TPA: TPointArray;<br />
<br />
begin<br />
TPA := [Point(0, 0), Point(1, 1), Point(3, 3)];<br />
WriteLn(TPAAppend(TPA, Point(4, 4)));<br />
WriteLn(TPAToStr(TPA));<br />
end.<br />
</source><br />
<br />
Output:<br />
3<br />
(0,0);(1,1);(3,3);(4,4)<br />
<br />
==See Also==<br />
*[[TPAAppendEx]]<br />
*[[TPAInsert]]<br />
*[[TPADelete]]<br />
*[[TPARemove]]<br />
*[[TPARemoveEx]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TPA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=Main_Page&diff=1985
Main Page
2013-07-09T03:15:48Z
<p>Freddy: Redirected page to SCAR Divi Online Manual</p>
<hr />
<div>#REDIRECT [[SCAR_Divi_Online_Manual]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=GetFolders&diff=1984
GetFolders
2013-02-02T01:39:53Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function GetFolders(const Path: string): TStrArray;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.20 > Current<br />
<br />
===Notes===<br />
*Did not work 100% correctly until 3.39<br />
<br />
==Description==<br />
This function generates a list of all subdirectories in a given directory specified by '''Path''' and returns it as a [[TStrArray]]. This function is not recursive and only returns the name of the folders without trailing path delimiter. The directory paths '.' and '..' are always amongst the results.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
sa: TStrArray;<br />
i: Integer;<br />
<br />
begin<br />
sa := GetFolders(IncludesPath);<br />
for i := Low(sa) to High(sa) do<br />
WriteLn(sa[i]);<br />
end.<br />
</source><br />
<br />
==See Also==<br />
*[[GetFiles]]<br />
<br />
[[Category:Functions]]<br />
[[Category:File Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=GetFolders&diff=1983
GetFolders
2013-02-02T01:39:42Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function GetFolders(constPath: string): TStrArray;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.20 > Current<br />
<br />
===Notes===<br />
*Did not work 100% correctly until 3.39<br />
<br />
==Description==<br />
This function generates a list of all subdirectories in a given directory specified by '''Path''' and returns it as a [[TStrArray]]. This function is not recursive and only returns the name of the folders without trailing path delimiter. The directory paths '.' and '..' are always amongst the results.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
sa: TStrArray;<br />
i: Integer;<br />
<br />
begin<br />
sa := GetFolders(IncludesPath);<br />
for i := Low(sa) to High(sa) do<br />
WriteLn(sa[i]);<br />
end.<br />
</source><br />
<br />
==See Also==<br />
*[[GetFiles]]<br />
<br />
[[Category:Functions]]<br />
[[Category:File Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=GetFiles&diff=1982
GetFiles
2013-02-02T01:39:23Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function GetFiles(const Path, Ext: string): TStrArray;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.00 > Current<br />
<br />
===Notes===<br />
*Did not work 100% correctly until 3.39<br />
<br />
==Description==<br />
This function generates a list of all files in a given directory specified by '''Path''' with the file extension specified in '''Ext''' (without leading point) and returns it as a [[TStrArray]]. This function is not recursive and only returns the name (with extension) of the files. The '''Ext''' parameter does allow the usage of [http://en.wikipedia.org/wiki/Wildcard_character wildcards].<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
sa: TStrArray;<br />
i: Integer;<br />
<br />
begin<br />
sa := GetFiles(IncludesPath, '*');<br />
for i := Low(sa) to High(sa) do<br />
WriteLn(sa[i]);<br />
end.<br />
</source><br />
<br />
==See Also==<br />
*[[GetFolders]]<br />
<br />
[[Category:Functions]]<br />
[[Category:File Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TPAFromBox&diff=1981
TPAFromBox
2013-01-19T18:28:47Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TPAFromBox(const Box: TBox): TPointArray;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.26 > Current<br />
<br />
===Notes===<br />
*Before 3.39, the function did not throw an exception on an invalid box.<br />
<br />
==Description==<br />
Generates a [[TPointArray]] containing all coordinates within the given [[TBox]] '''Box'''. The coordinates are stored row-by-row in the TPointArray. If '''Box''' is invalid (XE > XS and/or YE > XS), the function throws an exception.<br />
<br />
==Example==<br />
<source lang="scar"><br />
begin<br />
WriteLn('TPointArray[' + TPAToStr(TPAFromBox(Box(3, 1, 5, 5))) + ']');<br />
end.<br />
</source><br />
<br />
Output:<br />
TPointArray[(3,1);(4,1);(3,2);(4,2);(3,3);(4,3);(3,4);(4,4)]<br />
<br />
==See Also==<br />
*[[TPAFromCircle]]<br />
*[[TPAFromTriangle]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TPA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TBooleanArray&diff=1980
TBooleanArray
2012-12-13T11:15:03Z
<p>Freddy: Redirected page to TBoolArray</p>
<hr />
<div>#REDIRECT [[TBoolArray]]<br />
<br />
[[Category:Types]]<br />
[[Category:Array Types]]<br />
[[Category:Dynamic Array Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=CopyTIAEx&diff=1979
CopyTIAEx
2012-12-12T15:58:59Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function CopyTIAEx(const TIA: TIntArray; const Index, Count: Integer): TIntArray;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
==Description==<br />
Creates a new [[TIntArray]] with a copy of every element in the given array '''TIA''' starting at '''Index''' with a length of '''Count'''.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TIA, TIA2: TIntArray;<br />
<br />
begin<br />
TIA := [2, 9, 7, 4, 5, 3];<br />
TIA2 := CopyTIAEx(TIA, 2, 2);<br />
WriteLn(TIAToStr(TIA2));<br />
end.<br />
</source><br />
<br />
Output:<br />
7,4<br />
<br />
==See Also==<br />
*[[CopyTIA]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=CopyTIAEx&diff=1978
CopyTIAEx
2012-12-12T15:57:21Z
<p>Freddy: Created page with "==Definition== <source lang="scar" lines="false"> function CopyTIAEx(const TIA: TIntArray; const Index, Count: Integer): TIntArray; </source> ==Availability== SCAR Divi 3.28 ..."</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function CopyTIAEx(const TIA: TIntArray; const Index, Count: Integer): TIntArray;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
==Description==<br />
Creates a new [[TIntArray]] with a copy of every element in the given array '''TIA''' starting at '''Index''' with a length of '''Count'''.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TIA, TIA2: TIntArray;<br />
<br />
begin<br />
TIA := [2, 9, 7, 4, 5, 3];<br />
TIA2 := CopyTIAEx(TIA, 2, 2);<br />
WriteLn(TIAToStr(TIA2));<br />
end.<br />
</source><br />
<br />
Output:<br />
7,4<br />
<br />
==See Also==<br />
*[[CopyTIA]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=CopyTPAEx&diff=1977
CopyTPAEx
2012-12-12T15:56:58Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function CopyTPAEx(const TPA: TPointArray; const Index, Count: Integer): TPointArray;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
==Description==<br />
Creates a new [[TPointArray]] with a copy of every element in the given array '''TPA''' starting at '''Index''' with a length of '''Count'''.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TPA, TPA2: TPointArray;<br />
<br />
begin<br />
TPA := [Point(5, 6), Point(0, 0), Point(1, 1), Point(2, 4), Point(6, 9)];<br />
TPA2 := CopyTPAEx(TPA, 2, 2);<br />
WriteLn(TPAToStr(TPA2));<br />
end.<br />
</source><br />
<br />
Output:<br />
(1,1);(2,4)<br />
<br />
==See Also==<br />
*[[CopyTPA]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TPA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=CopyTPA&diff=1976
CopyTPA
2012-12-12T15:55:50Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function CopyTPA(const TPA: TPointArray): TPointArray;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
==Description==<br />
Creates a new [[TPointArray]] with a copy of every element in the given array '''TPA'''. An extended function with additional functionality is available as [[CopyTPAEx]].<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TPA, TPA2: TPointArray;<br />
<br />
begin<br />
TPA := [Point(5, 6), Point(0, 0), Point(1, 1)];<br />
TPA2 := TPA;<br />
SortTPA(TPA2);<br />
WriteLn('TPA passed by reference to TPA2:');<br />
WriteLn('TPA: ' + TPAToStr(TPA));<br />
WriteLn('TPA2: ' + TPAToStr(TPA2));<br />
<br />
TPA := [Point(5, 6), Point(0, 0), Point(1, 1)];<br />
TPA2 := CopyTPA(TPA);<br />
SortTPA(TPA2);<br />
WriteLn('TPA passed by value to TPA2:');<br />
WriteLn('TPA: ' + TPAToStr(TPA));<br />
WriteLn('TPA2: ' + TPAToStr(TPA2));<br />
end.<br />
</source><br />
<br />
Output:<br />
TPA passed by reference to TPA2:<br />
TPA: (0,0);(1,1);(5,6)<br />
TPA2: (0,0);(1,1);(5,6)<br />
TPA passed by value to TPA2:<br />
TPA: (5,6);(0,0);(1,1)<br />
TPA2: (0,0);(1,1);(5,6)<br />
<br />
==See Also==<br />
*[[CopyTPAEx]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TPA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIAMax&diff=1975
TIAMax
2012-12-12T15:54:48Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TIAMax(const TIA: TIntArray): Integer;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.34 > Current<br />
<br />
===Aliases===<br />
*AMax (SCAR Divi 3.00 > 3.37)<br />
<br />
==Description==<br />
Returns the largest number in a given '''TIA'''. The function throws an exception if the size of the given TIA is 0. An extended function with additional functionality is available as [[TIAMaxEx]].<br />
<br />
==Example==<br />
<source lang="scar"><br />
begin<br />
WriteLn(TIAMax([2, 4, 3, 6, 8, 5, 1, 2]));<br />
end.<br />
</source><br />
<br />
Output:<br />
8<br />
<br />
==See Also==<br />
*[[TIAMaxEx]]<br />
*[[TIAMin]]<br />
*[[TIARange]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIAMaxEx&diff=1974
TIAMaxEx
2012-12-12T15:54:41Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TIAMaxEx(const TIA: TIntArray; out Index: Integer): Integer;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.34 > Current<br />
<br />
==Description==<br />
Returns the largest number in a given '''TIA''' and the first index where it was found in '''Idx'''. The function throws an exception if the size of the given TIA is 0.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
Idx: Integer;<br />
begin<br />
WriteLn(TIAMaxEx([2, 4, 3, 6, 8, 5, 1, 2], Idx));<br />
WriteLn('Index: ' + IntToStr(Idx));<br />
end.<br />
</source><br />
<br />
Output:<br />
8<br />
Index: 4<br />
<br />
==See Also==<br />
*[[TIAMax]]<br />
*[[TIAMinEx]]<br />
*[[TIARange]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIAMinEx&diff=1973
TIAMinEx
2012-12-12T15:54:35Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TIAMinEx(const TIA: TIntArray; out Index: Integer): Integer;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.34 > Current<br />
<br />
==Description==<br />
Returns the smallest number in a given '''TIA''' and the first index where it was found in '''Idx'''. The function throws an exception if the size of the given TIA is 0.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
Idx: Integer;<br />
begin<br />
WriteLn(TIAMinEx([2, 4, 3, 6, 8, 5, 1, 2], Idx));<br />
WriteLn('Index: ' + IntToStr(Idx));<br />
end.<br />
</source><br />
<br />
Output:<br />
1<br />
Index: 6<br />
<br />
==See Also==<br />
*[[TIAMin]]<br />
*[[TIAMaxEx]]<br />
*[[TIARange]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIAMin&diff=1972
TIAMin
2012-12-12T15:54:29Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TIAMin(const TIA: TIntArray): Integer;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.34 > Current<br />
<br />
===Aliases===<br />
*AMin (SCAR Divi 3.00 > 3.37)<br />
<br />
==Description==<br />
Returns the smallest number in a given '''TIA'''. The function throws an exception if the size of the given TIA is 0. An extended function with additional functionality is available as [[TIAMinEx]].<br />
<br />
==Example==<br />
<source lang="scar"><br />
begin<br />
WriteLn(TIAMin([2, 4, 3, 6, 8, 5, 1, 2]));<br />
end.<br />
</source><br />
<br />
Output:<br />
1<br />
<br />
==See Also==<br />
*[[TIAMinEx]]<br />
*[[TIAMax]]<br />
*[[TIARange]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=CopyTIA&diff=1971
CopyTIA
2012-12-12T15:53:19Z
<p>Freddy: Created page with "==Definition== <source lang="scar" lines="false"> function CopyTIA(const TIA: TIntArray): TIntArray; </source> ==Availability== SCAR Divi 3.38 > Current ==Description== Crea..."</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function CopyTIA(const TIA: TIntArray): TIntArray;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
==Description==<br />
Creates a new [[TIntArray]] with a copy of every element in the given array '''TIA'''. An extended function with additional functionality is available as [[CopyTIAEx]].<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TIA, TIA2: TIntArray;<br />
<br />
begin<br />
TIA := [7, 6, 2, 0, 1];<br />
TIA2 := TIA;<br />
SortTIA(TIA2);<br />
WriteLn('TIA passed by reference to TIA2:');<br />
WriteLn('TIA: ' + TIAToStr(TIA));<br />
WriteLn('TIA2: ' + TIAToStr(TIA2));<br />
<br />
TIA := [7, 6, 2, 0, 1];<br />
TIA2 := CopyTIA(TIA);<br />
SortTIA(TIA2);<br />
WriteLn('TIA passed by value to TIA2:');<br />
WriteLn('TIA: ' + TIAToStr(TIA));<br />
WriteLn('TIA2: ' + TIAToStr(TIA2));<br />
end.<br />
</source><br />
<br />
Output:<br />
TIA passed by reference to TIA2:<br />
TIA: 0,1,2,6,7<br />
TIA2: 0,1,2,6,7<br />
TIA passed by value to TIA2:<br />
TIA: 7,6,2,0,1<br />
TIA2: 0,1,2,6,7<br />
<br />
==See Also==<br />
*[[CopyTIAEx]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIAAddEx&diff=1970
TIAAddEx
2012-12-12T15:34:56Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
procedure TIAAddEx(var TIA: TIntArray; const Values: TIntArray);<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
==Description==<br />
Adds the values from the [[TIntArray]] '''Values''' to the values in '''TIA'''. The functions alternates between the values in '''Values'''. When '''Values''' is empty, '''TIA''' remains unchanged.<br />
<br />
==Examples==<br />
===Example 1===<br />
<source lang="scar"><br />
var<br />
TIA: TIntArray;<br />
<br />
begin<br />
TIA := [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];<br />
TIAAddEx(TIA, [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]);<br />
WriteLn(TIAToStr(TIA));<br />
end.<br />
</source><br />
<br />
Output:<br />
9,9,9,9,9,9,9,9,9,9<br />
<br />
===Example 2===<br />
<source lang="scar"><br />
var<br />
TIA: TIntArray;<br />
<br />
begin<br />
TIA := [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];<br />
TIAAddEx(TIA, [2, 1]);<br />
WriteLn(TIAToStr(TIA));<br />
end.<br />
</source><br />
<br />
Output:<br />
2,2,4,4,6,6,8,8,10,10<br />
<br />
==See Also==<br />
*[[TIAAdd]]<br />
*[[TIASubtractEx]]<br />
*[[TIAMultiplyEx]]<br />
*[[TIADivideEx]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIAAdd&diff=1969
TIAAdd
2012-12-12T15:34:50Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
procedure TIAAdd(var TIA: TIntArray; const Value: Integer);<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
===Aliases===<br />
*OffsetTIA (SCAR Divi 3.34 > Current)<br />
<br />
==Description==<br />
Adds a given value '''Value''' to every value in the [[TIntArray]] '''TIA'''. A function with extended functionality is available as [[TIAAddEx]].<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TIA: TIntArray; <br />
<br />
begin<br />
TIA := [5, -7, 1, 6, 88];<br />
TIAAdd(TIA, 5); <br />
WriteLn(TIAToStr(TIA));<br />
end.<br />
</source><br />
<br />
Output:<br />
10,-2,6,11,93<br />
<br />
==See Also==<br />
*[[TIAAddEx]]<br />
*[[TIASubtract]]<br />
*[[TIAMultiply]]<br />
*[[TIADivide]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TEAAdd&diff=1968
TEAAdd
2012-12-12T15:34:35Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
procedure TEAAdd(var TEA: TExtArray; const Value: Extended);<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
===Aliases===<br />
*OffsetTEA (SCAR Divi 3.38 > Current)<br />
<br />
==Description==<br />
Adds a given value '''Value''' to every value in the [[TExtArray]] '''TEA'''. A function with extended functionality is available as [[TEAAddEx]].<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TEA: TExtArray; <br />
<br />
begin<br />
TEA := [5.1, -7.2, 1.5, 6.8, 88.9];<br />
TEAAdd(TEA, 0.6); <br />
WriteLn(TEAToStr(TEA));<br />
end.<br />
</source><br />
<br />
Output:<br />
5.7,-6.6,2.1,7.4,89.5<br />
<br />
==See Also==<br />
*[[TEAAddEx]]<br />
*[[TEASubtract]]<br />
*[[TEAMultiply]]<br />
*[[TEADivide]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TEA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TEASum&diff=1967
TEASum
2012-12-12T15:33:17Z
<p>Freddy: Created page with "==Definition== <source lang="scar" lines="false"> function TEASum(const TEA: TExtArray): Extended; </source> ==Availability== SCAR Divi 3.38 > Current ==Description== Return..."</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TEASum(const TEA: TExtArray): Extended;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
==Description==<br />
Returns the sum of all [[Extended|extended values]] in the given [[TExtArray]] '''TEA'''.<br />
<br />
==Example==<br />
<source lang="scar"><br />
begin<br />
WriteLn(TEASum([0.1, 1.2, 3.5, 4.6]));<br />
end.<br />
</source><br />
<br />
Output:<br />
8.4<br />
<br />
[[Category:Functions]]<br />
[[Category:TEA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIAMedian&diff=1966
TIAMedian
2012-12-12T15:24:22Z
<p>Freddy: /* Examples */</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TIAMedian(const TIA: TIntArray): Extended;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
==Description==<br />
Returns the [http://mathworld.wolfram.com/StatisticalMedian.html statistical median] of the [[integer]] values in the given [[TIntArray]] '''TIA'''. Throws an exception if '''TIA''' is empty.<br />
<br />
==Examples==<br />
===Example 1===<br />
<source lang="scar"><br />
var<br />
TIA: TIntArray;<br />
<br />
begin<br />
TIA := [1, 5, 4, 1, 5];<br />
WriteLn(TIAMedian(TIA));<br />
end.<br />
</source><br />
<br />
Output:<br />
4<br />
===Example 2===<br />
<source lang="scar"><br />
var<br />
TIA: TIntArray;<br />
<br />
begin<br />
TIA := [1, 4, 1, 5];<br />
WriteLn(TIAMedian(TIA));<br />
end.<br />
</source><br />
<br />
Output:<br />
2.5<br />
<br />
==See Also==<br />
*[[TIAMean]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TEAMedian&diff=1965
TEAMedian
2012-12-12T15:23:33Z
<p>Freddy: /* Examples */</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TEAMedian(const TEA: TExtArray): Extended;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
==Description==<br />
Returns the [http://mathworld.wolfram.com/StatisticalMedian.html statistical median] of the [[extended]] values in the given [[TExtArray]] '''TEA'''. Throws an exception if '''TEA''' is empty.<br />
<br />
==Examples==<br />
===Example 1===<br />
<source lang="scar"><br />
var<br />
TEA: TExtArray;<br />
<br />
begin<br />
TEA := [1.1, 5.5, 4.3, 1.2, 5.4];<br />
WriteLn(TEAMedian(TEA));<br />
end.<br />
</source><br />
<br />
Output:<br />
4.3<br />
===Example 2===<br />
<source lang="scar"><br />
var<br />
TEA: TExtArray;<br />
<br />
begin<br />
TEA := [1.1, 4.3, 1.2, 5.4];<br />
WriteLn(TEAMedian(TEA));<br />
end.<br />
</source><br />
<br />
Output:<br />
2.75<br />
<br />
==See Also==<br />
*[[TEAMean]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TEA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TEAMedian&diff=1964
TEAMedian
2012-12-12T15:22:29Z
<p>Freddy: Created page with "==Definition== <source lang="scar" lines="false"> function TEAMedian(const TEA: TExtArray): Extended; </source> ==Availability== SCAR Divi 3.38 > Current ==Description== Ret..."</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TEAMedian(const TEA: TExtArray): Extended;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
==Description==<br />
Returns the [http://mathworld.wolfram.com/StatisticalMedian.html statistical median] of the [[extended]] values in the given [[TExtArray]] '''TEA'''. Throws an exception if '''TEA''' is empty.<br />
<br />
==Examples==<br />
===Example 1===<br />
<source lang="scar"><br />
var<br />
TEA: TExtArray;<br />
<br />
begin<br />
TEA := [1.1, 1.2, 4.3, 5.4, 5.5];<br />
WriteLn(TEAMedian(TEA));<br />
end.<br />
</source><br />
<br />
Output:<br />
4.3<br />
===Example 2===<br />
<source lang="scar"><br />
var<br />
TEA: TExtArray;<br />
<br />
begin<br />
TEA := [1.1, 1.2, 4.3, 5.4];<br />
WriteLn(TEAMedian(TEA));<br />
end.<br />
</source><br />
<br />
Output:<br />
2.75<br />
<br />
==See Also==<br />
*[[TEAMean]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TEA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIAMedian&diff=1963
TIAMedian
2012-12-12T15:19:53Z
<p>Freddy: Created page with "==Definition== <source lang="scar" lines="false"> function TIAMedian(const TIA: TIntArray): Extended; </source> ==Availability== SCAR Divi 3.38 > Current ==Description== Ret..."</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TIAMedian(const TIA: TIntArray): Extended;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
==Description==<br />
Returns the [http://mathworld.wolfram.com/StatisticalMedian.html statistical median] of the [[integer]] values in the given [[TIntArray]] '''TIA'''. Throws an exception if '''TIA''' is empty.<br />
<br />
==Examples==<br />
===Example 1===<br />
<source lang="scar"><br />
var<br />
TIA: TIntArray;<br />
<br />
begin<br />
TIA := [1, 1, 4, 5, 5];<br />
WriteLn(TIAMedian(TIA));<br />
end.<br />
</source><br />
<br />
Output:<br />
4<br />
===Example 2===<br />
<source lang="scar"><br />
var<br />
TIA: TIntArray;<br />
<br />
begin<br />
TIA := [1, 1, 4, 5];<br />
WriteLn(TIAMedian(TIA));<br />
end.<br />
</source><br />
<br />
Output:<br />
2.5<br />
<br />
==See Also==<br />
*[[TIAMean]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TStrArray&diff=1962
TStrArray
2012-12-12T15:11:37Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
TStrArray = array of string;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.34 > Current<br />
<br />
===Aliases===<br />
*TStringArray (SCAR Divi 3.00 > 3.34 & 3.38 > Current)<br />
<br />
==Description==<br />
A dynamic array type based on the [[string]] type. It holds a set of strings.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
SA: TStrArray;<br />
<br />
begin<br />
SA := ['Hello', 'World!'];<br />
WriteLn(Implode(' ', SA));<br />
end.<br />
</source><br />
<br />
Output:<br />
Hello World!<br />
<br />
==See Also==<br />
*[[string]]<br />
*[[AnsiString]]<br />
<br />
[[Category:Types]]<br />
[[Category:Array Types]]<br />
[[Category:Dynamic Array Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TExtArray&diff=1961
TExtArray
2012-12-12T15:10:08Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
TExtArray = array of Extended;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.34 > Current<br />
<br />
===Aliases===<br />
*TExtendedArray (SCAR Divi 3.00 > 3.34 & 3.38 > Current)<br />
<br />
==Description==<br />
A dynamic array type based on the [[Extended]] type. There are [[:Category:TEA_Functions|many functions]] available to process these arrays.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TEA: TExtArray;<br />
<br />
begin<br />
SetLength(TEA, 2);<br />
TEA[0] := 5.7;<br />
TEA[1] := 9.888;<br />
WriteLn(TEAToStr(TEA));<br />
end.<br />
</source><br />
<br />
Output:<br />
5.7,9.888<br />
<br />
==See Also==<br />
*[[Extended]]<br />
*[[T2DExtArray]]<br />
*[[TEAToStr]]<br />
*[[StrToTEA]]<br />
<br />
[[Category:Types]]<br />
[[Category:Array Types]]<br />
[[Category:Dynamic Array Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TStrArray&diff=1960
TStrArray
2012-12-12T15:09:55Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
TStrArray = array of string;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.34 > Current<br />
<br />
===Aliases===<br />
*TStringArray (SCAR Divi 3.00 > 3.34 & 3.38 > Current)<br />
<br />
==Description==<br />
A dynamic array type based on the [[string]] type. It holds a set of strings.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
SA: TStringArray;<br />
<br />
begin<br />
SA := ['Hello', 'World!'];<br />
WriteLn(Implode(' ', SA));<br />
end.<br />
</source><br />
<br />
Output:<br />
Hello World!<br />
<br />
==See Also==<br />
*[[string]]<br />
*[[AnsiString]]<br />
<br />
[[Category:Types]]<br />
[[Category:Array Types]]<br />
[[Category:Dynamic Array Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TStringArray&diff=1959
TStringArray
2012-12-12T15:08:52Z
<p>Freddy: </p>
<hr />
<div>#REDIRECT [[TStrArray]]<br />
<br />
[[Category:Types]]<br />
[[Category:Array Types]]<br />
[[Category:Dynamic Array Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TStrArray&diff=1957
TStrArray
2012-12-12T15:08:44Z
<p>Freddy: Freddy moved page TStringArray to TStrArray</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
TStringArray = array of string;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.00 > Current<br />
<br />
==Description==<br />
A dynamic array type based on the [[string]] type. It holds a set of strings.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
SA: TStringArray;<br />
<br />
begin<br />
SA := ['Hello', 'World!'];<br />
WriteLn(Implode(' ', SA));<br />
end.<br />
</source><br />
<br />
Output:<br />
Hello World!<br />
<br />
==See Also==<br />
*[[string]]<br />
*[[AnsiString]]<br />
<br />
[[Category:Types]]<br />
[[Category:Array Types]]<br />
[[Category:Dynamic Array Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TStringArray&diff=1958
TStringArray
2012-12-12T15:08:44Z
<p>Freddy: Freddy moved page TStringArray to TStrArray</p>
<hr />
<div>#REDIRECT [[TStrArray]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TExtendedArray&diff=1956
TExtendedArray
2012-12-12T15:08:25Z
<p>Freddy: Redirected page to TExtArray</p>
<hr />
<div>#REDIRECT [[TExtArray]]<br />
<br />
[[Category:Types]]<br />
[[Category:Array Types]]<br />
[[Category:Dynamic Array Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIntegerArray&diff=1955
TIntegerArray
2012-12-12T15:08:01Z
<p>Freddy: </p>
<hr />
<div>#REDIRECT [[TIntArray]]<br />
<br />
[[Category:Types]]<br />
[[Category:Array Types]]<br />
[[Category:Dynamic Array Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIntArray&diff=1954
TIntArray
2012-12-12T15:07:48Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
TIntArray = array of Integer;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.27 > Current<br />
<br />
===Aliases===<br />
*TIntegerArray (SCAR Divi 3.00 > 3.34 & 3.38 > Current)<br />
<br />
==Description==<br />
A dynamic array type based on the [[Integer]] type. There are [[:Category:TIA_Functions|many functions]] available to process these arrays.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TIA: TIntArray;<br />
<br />
begin<br />
SetLength(TIA, 2);<br />
TIA[0] := 5;<br />
TIA[1] := 9;<br />
WriteLn(TIAToStr(TIA));<br />
end.<br />
</source><br />
<br />
Output:<br />
5,9<br />
<br />
==See Also==<br />
*[[Integer]]<br />
*[[T2DIntArray]]<br />
*[[TIAToStr]]<br />
*[[StrToTIA]]<br />
<br />
[[Category:Types]]<br />
[[Category:Array Types]]<br />
[[Category:Dynamic Array Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TExtArray&diff=1953
TExtArray
2012-12-12T14:50:17Z
<p>Freddy: Created page with "==Definition== <source lang="scar" lines="false"> TExtArray = array of Extended; </source> ==Availability== SCAR Divi 3.34 > Current ===Aliases=== *TExtendedArray (SCAR Divi..."</p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
TExtArray = array of Extended;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.34 > Current<br />
<br />
===Aliases===<br />
*TExtendedArray (SCAR Divi 3.00 > 3.34)<br />
<br />
==Description==<br />
A dynamic array type based on the [[Extended]] type. There are [[:Category:TEA_Functions|many functions]] available to process these arrays.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TEA: TExtArray;<br />
<br />
begin<br />
SetLength(TEA, 2);<br />
TEA[0] := 5.7;<br />
TEA[1] := 9.888;<br />
WriteLn(TEAToStr(TEA));<br />
end.<br />
</source><br />
<br />
Output:<br />
5.7,9.888<br />
<br />
==See Also==<br />
*[[Extended]]<br />
*[[T2DExtArray]]<br />
*[[TEAToStr]]<br />
*[[StrToTEA]]<br />
<br />
[[Category:Types]]<br />
[[Category:Array Types]]<br />
[[Category:Dynamic Array Types]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=Average&diff=1952
Average
2012-12-12T14:48:11Z
<p>Freddy: Redirected page to TEAMean</p>
<hr />
<div>#REDIRECT [[TEAMean]]<br />
<br />
[[Category:Deprecated Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TIAMean&diff=1951
TIAMean
2012-12-12T14:47:43Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TIAMean(const TIA: TIntArray): Extended;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.28 > Current<br />
<br />
===Notes===<br />
*Before 3.38, the function returned 0 when '''TIA''' was empty.<br />
<br />
==Description==<br />
Returns the [http://mathworld.wolfram.com/ArithmeticMean.html arithmetic mean] of the [[Integer|integer]] values in the given [[TIntArray]] '''TIA'''. Throws an exception if '''TIA''' is empty.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TIA: TIntArray;<br />
<br />
begin<br />
TIA := [1, 1, 5, 5];<br />
WriteLn(TIAMean(TIA));<br />
end.<br />
</source><br />
<br />
Output:<br />
3<br />
<br />
==See Also==<br />
*[[TIAMedian]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TIA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy
https://wiki.scar-divi.com/index.php?title=TEAMean&diff=1950
TEAMean
2012-12-12T14:47:33Z
<p>Freddy: </p>
<hr />
<div>==Definition==<br />
<source lang="scar" lines="false"><br />
function TEAMean(const TEA: TExtArray): Extended;<br />
</source><br />
<br />
==Availability==<br />
SCAR Divi 3.38 > Current<br />
<br />
===Aliases===<br />
*Average (SCAR Divi 3.00 > 3.37)<br />
<br />
==Description==<br />
Returns the [http://mathworld.wolfram.com/ArithmeticMean.html arithmetic mean] of the [[extended]] values in the given [[TExtArray]] '''TEA'''. Throws an exception if '''TEA''' is empty.<br />
<br />
==Example==<br />
<source lang="scar"><br />
var<br />
TEA: TExtArray;<br />
<br />
begin<br />
TEA := [1.2, 1.8, 5.3, 5.7];<br />
WriteLn(TEAMean(TEA));<br />
end.<br />
</source><br />
<br />
Output:<br />
3.5<br />
<br />
==See Also==<br />
*[[TEAMedian]]<br />
<br />
[[Category:Functions]]<br />
[[Category:TEA Functions]]<br />
[[Category:Array Functions]]<br />
[[Category:Math Functions]]</div>
Freddy