<!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 - Stock[]
 (gb.qt)</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="../stock+en">Up</a>&nbsp;
<a href="list+en">Previous</a>&nbsp;
<a href="../tabstrip+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Stock[]
 (gb.qt)</h1>
<div class="black"><font size="-2"><b>Syntax</b></font></div>
<pre class="syntax"><font color="blue">DIM</font> hPicture <font color="blue">AS</font> <font color="#0080FF"><a href="../picture+en">Picture</a></font>

hPicture <font color="blue">=</font> Stock <font color="blue">[</font> <u>Key</u> <font color="blue">AS</font> <font color="#0080FF">String</font> <font color="blue">]</font></pre>
Returns an icon from the stock.
<p>
The format of <u>Key</u> is <tt>&quot;<u>Size</u>/<u>Name</u>&quot;</tt>, where:
<ul>
<li><tt><u>Size</u></tt> is the size of the icon.
<li><tt><u>Name</u></tt> is the name of the icon.
<p>
</ul>

Use the <a href="list+en">List</a> property to get a list of all possible names.
<p>
This method is called by the <a href="../picture+en">Picture</a> class array accessor when it gets an icon path beginning with <tt>&quot;icon:/&quot;</tt>.

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

