<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<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>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../help+en"><img class="flag" alt="Home" border="0" src="../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../cat+en">Up</a>&nbsp;
<a href="arithop+en">Previous</a>&nbsp;
<a href="arraydecl+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Native Arrays
</h1>
<a href="../def/gambas+en">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 class="dark"><td valign="top">
<a href="../comp/gb/boolean[]+en">Boolean[]</a>
</td><td valign="top">
Array of <a href="../lang/type/boolean+en">Boolean</a> values.
</td></tr>
<tr><td valign="top">
<a href="../comp/gb/byte[]+en">Byte[]</a>
</td><td valign="top">
Array of <a href="../lang/type/byte+en">Byte</a> values.
</td></tr>
<tr class="dark"><td valign="top">
<a href="../comp/gb/short[]+en">Short[]</a>
</td><td valign="top">
Array of <a href="../lang/type/short+en">Short</a> values.
</td></tr>
<tr><td valign="top">
<a href="../comp/gb/integer[]+en">Integer[]</a>
</td><td valign="top">
Array of <a href="../lang/type/integer+en">Integer</a> values.
</td></tr>
<tr class="dark"><td valign="top">
<a href="../comp/gb/long[]+en">Long[]</a>
</td><td valign="top">
Array of <a href="../lang/type/long+en">Long</a> values.
</td></tr>
<tr><td valign="top">
<a href="../comp/gb/single[]+en">Single[]</a>
</td><td valign="top">
Array of <a href="../lang/type/single+en">Single</a> values.
</td></tr>
<tr class="dark"><td valign="top">
<a href="../comp/gb/float[]+en">Float[]</a>
</td><td valign="top">
Array of <a href="../lang/type/float+en">Float</a> values.
</td></tr>
<tr><td valign="top">
<a href="../comp/gb/date[]+en">Date[]</a>
</td><td valign="top">
Array of <a href="../lang/type/date+en">Date</a> values.
</td></tr>
<tr class="dark"><td valign="top">
<a href="../comp/gb/string[]+en">String[]</a>
</td><td valign="top">
Array of <a href="../comp/gb/string+en">String</a> values.
</td></tr>
<tr><td valign="top">
<a href="../comp/gb/object[]+en">Object[]</a>
</td><td valign="top">
Array of <a href="../comp/gb/object+en">Object</a> values.
</td></tr>
<tr class="dark"><td valign="top">
<a href="../comp/gb/variant[]+en">Variant[]</a>
</td><td valign="top">
Array of <a href="../lang/type/variant+en">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+en">Inline Arrays</a> for more information.

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

