<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css">
<title>
Gambas Documentation - Native Arrays
</title>
</head>
<body>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../help%3Fen"><img class="flag" alt="Home" border="0" src="../../img/lang/en.png" align="center"></a>&nbsp;&nbsp;
<a href="../cat%3Fen">Up</a>&nbsp;&nbsp;
<a href="arithop%3Fen">Previous</a>&nbsp;&nbsp;
<a href="arraydecl%3Fen">Next</a>&nbsp;&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Native Arrays
</h1>
<a href="../def/gambas%3Fen">Gambas</a> has a predefined array class for each native Datatype.
<p>
The name of these classes is the name of the datatype they store followed by
an opened and a closed bracket.
<p>
<table class="table" border="0" bordercolor="#000000" cellpadding="4" cellspacing="0">
<tr bgcolor="white"><td valign="top">
<a href="../comp/gb/boolean[]%3Fen">Boolean[]</a>
</td><td valign="top">
Array of <a href="../lang/type/boolean%3Fen">Boolean</a> values.
</td></tr>
<tr><td valign="top">
<a href="../comp/gb/byte[]%3Fen">Byte[]</a>
</td><td valign="top">
Array of <a href="../lang/type/byte%3Fen">Byte</a> values.
</td></tr>
<tr bgcolor="white"><td valign="top">
<a href="../comp/gb/short[]%3Fen">Short[]</a>
</td><td valign="top">
Array of <a href="../lang/type/short%3Fen">Short</a> values.
</td></tr>
<tr><td valign="top">
<a href="../comp/gb/integer[]%3Fen">Integer[]</a>
</td><td valign="top">
Array of <a href="../lang/type/integer%3Fen">Integer</a> values.
</td></tr>
<tr bgcolor="white"><td valign="top">
<a href="../comp/gb/long[]%3Fen">Long[]</a>
</td><td valign="top">
Array of <a href="../lang/type/long%3Fen">Long</a> values.
</td></tr>
<tr><td valign="top">
<a href="../comp/gb/single[]%3Fen">Single[]</a>
</td><td valign="top">
Array of <a href="../lang/type/single%3Fen">Single</a> values.
</td></tr>
<tr bgcolor="white"><td valign="top">
<a href="../comp/gb/float[]%3Fen">Float[]</a>
</td><td valign="top">
Array of <a href="../lang/type/float%3Fen">Float</a> values.
</td></tr>
<tr><td valign="top">
<a href="../comp/gb/date[]%3Fen">Date[]</a>
</td><td valign="top">
Array of <a href="../lang/type/date%3Fen">Date</a> values.
</td></tr>
<tr bgcolor="white"><td valign="top">
<a href="../comp/gb/string[]%3Fen">String[]</a>
</td><td valign="top">
Array of <a href="../comp/gb/string%3Fen">String</a> values.
</td></tr>
<tr><td valign="top">
<a href="../comp/gb/object[]%3Fen">Object[]</a>
</td><td valign="top">
Array of <a href="../comp/gb/object%3Fen">Object</a> values.
</td></tr>
<tr bgcolor="white"><td valign="top">
<a href="../comp/gb/variant[]%3Fen">Variant[]</a>
</td><td valign="top">
Array of <a href="../lang/type/variant%3Fen">Variant</a> values.
</td></tr>
</table>
<p>
You can initialize an array, or create an array inside an expression with the
<tt>[</tt> ... <tt>]</tt> operator. See <a href="../lang/array%3Fen">Inline Arrays</a> for more information.

</div>
<hr>
</body>
</html>

