<!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 - GB_VARIANT
</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="../name+en">Up</a>&nbsp;
<a href="gb_value+en">Previous</a>&nbsp;
<a href="gb_virtual_class+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
GB_VARIANT
</h1>
<div class="black"><font size="-2"><b>Syntax</b></font></div>
<pre class="syntax">typedef
&nbsp;&nbsp;union {
&nbsp;&nbsp;&nbsp;&nbsp;GB_TYPE type;
&nbsp;&nbsp;&nbsp;&nbsp;struct { GB_TYPE type; long value; } _boolean;
&nbsp;&nbsp;&nbsp;&nbsp;struct { GB_TYPE type; long value; } _byte;
&nbsp;&nbsp;&nbsp;&nbsp;struct { GB_TYPE type; long value; } _short;
&nbsp;&nbsp;&nbsp;&nbsp;struct { GB_TYPE type; long value; } _integer;
&nbsp;&nbsp;&nbsp;&nbsp;struct { GB_TYPE type; long long value; } _long;
&nbsp;&nbsp;&nbsp;&nbsp;struct { GB_TYPE type; double value; } _float;
&nbsp;&nbsp;&nbsp;&nbsp;struct { GB_TYPE type; long date; long time; } _date;
&nbsp;&nbsp;&nbsp;&nbsp;struct { GB_TYPE type; char *value; } _string;
&nbsp;&nbsp;&nbsp;&nbsp;struct { GB_TYPE type; void *value; } _object;
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;GB_VARIANT_VALUE;
<p>
typedef
&nbsp;&nbsp;struct {
&nbsp;&nbsp;&nbsp;&nbsp;GB_TYPE type;
&nbsp;&nbsp;&nbsp;&nbsp;GB_VARIANT_VALUE value;
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;<b>GB_VARIANT</b>;</pre><p>

This structure represents a <a href="../../lang/type/variant+en">Variant</a> <a href="../../def/gambas+en">Gambas</a> value.
<p>
<hr><b>See also</b><br>
<a href="../cat/value+en">Gambas Value Datatype</a>&nbsp;

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

