snipt

Ctrl+h for KB shortcuts

VB.net

gambas

1
2
3
4
5
6
PUBLIC SUB Form_Open()

  'Ponemos al formulario al centro de la pantalla.
  ME.Center

END
https://snipt.net/embed/00789c94af86c554cc1fc46872dc626f/
https://snipt.net/raw/00789c94af86c554cc1fc46872dc626f/
00789c94af86c554cc1fc46872dc626f
vb.net
VB.net
6
2016-09-13T14:54:42
True
False
False
/api/public/snipt/37012/
gambas-12
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="k">PUBLIC</span> <span class="k">SUB</span> <span class="nf">Form_Open</span><span class="p">()</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a> <span class="c">&#39;Ponemos al formulario al centro de la pantalla.</span> </span><span id="L-4"><a name="L-4"></a> <span class="k">ME</span><span class="p">.</span><span class="n">Center</span> </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a><span class="k">END</span> </span></pre></div> </td></tr></table>
gambas

VB.net

gambas

1
2
3
4
5
' Gambas class file

'Variables necesarias para la lectura de procesos
PRIVATE Buffer AS String
PRIVATE Buf AS NEW String[]
https://snipt.net/embed/82df2e0b1d83b39c76e32ce511513c5d/
https://snipt.net/raw/82df2e0b1d83b39c76e32ce511513c5d/
82df2e0b1d83b39c76e32ce511513c5d
vb.net
VB.net
5
2016-08-14T09:50:29
True
False
False
/api/public/snipt/37008/
gambas-8
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c">&#39; Gambas class file</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c">&#39;Variables necesarias para la lectura de procesos</span> </span><span id="L-4"><a name="L-4"></a><span class="k">PRIVATE</span> <span class="n">Buffer</span> <span class="ow">AS</span> <span class="kt">String</span> </span><span id="L-5"><a name="L-5"></a><span class="k">PRIVATE</span> <span class="n">Buf</span> <span class="ow">AS</span> <span class="k">NEW</span> <span class="kt">String</span><span class="o">[]</span> </span></pre></div> </td></tr></table>
gambas

VB.net

gambas

1
2
3
4
5
6
PUBLIC SUB ComboBox1_Click()

  'Cambiamos el caption del framebox cuando cambiamos el ComboBox
  Module1.hINTERFACE = ComboBox1.Text

END
https://snipt.net/embed/f6ae30277a211c523012a2459bc5901d/
https://snipt.net/raw/f6ae30277a211c523012a2459bc5901d/
f6ae30277a211c523012a2459bc5901d
vb.net
VB.net
6
2016-09-24T13:43:48
True
False
False
/api/public/snipt/37007/
gambas-7
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="k">PUBLIC</span> <span class="k">SUB</span> <span class="nf">ComboBox1_Click</span><span class="p">()</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a> <span class="c">&#39;Cambiamos el caption del framebox cuando cambiamos el ComboBox</span> </span><span id="L-4"><a name="L-4"></a> <span class="n">Module1</span><span class="p">.</span><span class="n">hINTERFACE</span> <span class="o">=</span> <span class="n">ComboBox1</span><span class="p">.</span><span class="n">Text</span> </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a><span class="k">END</span> </span></pre></div> </td></tr></table>
gambas

VB.net

gambas

1
2
3
4
5
6
7
'Difinimos variables publicas.
PUBLIC hDRIVER AS String
PUBLIC hINTERFACE AS String
PUBLIC hFASTTX AS Integer
PUBLIC hHIGHPOWER AS Integer
PUBLIC hBADCRC AS Integer
PUBLIC hACTIVESCAN AS Integer
https://snipt.net/embed/01fde6bdbbb03d0f5cebe9449afd1caf/
https://snipt.net/raw/01fde6bdbbb03d0f5cebe9449afd1caf/
01fde6bdbbb03d0f5cebe9449afd1caf
vb.net
VB.net
7
2016-09-22T05:47:01
True
False
False
/api/public/snipt/37004/
gambas-4
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c">&#39;Difinimos variables publicas.</span> </span><span id="L-2"><a name="L-2"></a><span class="k">PUBLIC</span> <span class="n">hDRIVER</span> <span class="ow">AS</span> <span class="kt">String</span> </span><span id="L-3"><a name="L-3"></a><span class="k">PUBLIC</span> <span class="n">hINTERFACE</span> <span class="ow">AS</span> <span class="kt">String</span> </span><span id="L-4"><a name="L-4"></a><span class="k">PUBLIC</span> <span class="n">hFASTTX</span> <span class="ow">AS</span> <span class="kt">Integer</span> </span><span id="L-5"><a name="L-5"></a><span class="k">PUBLIC</span> <span class="n">hHIGHPOWER</span> <span class="ow">AS</span> <span class="kt">Integer</span> </span><span id="L-6"><a name="L-6"></a><span class="k">PUBLIC</span> <span class="n">hBADCRC</span> <span class="ow">AS</span> <span class="kt">Integer</span> </span><span id="L-7"><a name="L-7"></a><span class="k">PUBLIC</span> <span class="n">hACTIVESCAN</span> <span class="ow">AS</span> <span class="kt">Integer</span> </span></pre></div> </td></tr></table>
gambas

VB.net

gambas

DIM <nombre-variable> AS <tipo-String-ejemplo>
https://snipt.net/embed/08223e4f8e2165c82463cc10f5daf92f/
https://snipt.net/raw/08223e4f8e2165c82463cc10f5daf92f/
08223e4f8e2165c82463cc10f5daf92f
vb.net
VB.net
1
2016-09-18T16:01:31
True
False
False
/api/public/snipt/36958/
gambas-3
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="k">DIM</span> <span class="o">&lt;</span><span class="n">nombre</span><span class="o">-</span><span class="n">variable</span><span class="o">&gt;</span> <span class="ow">AS</span> <span class="o">&lt;</span><span class="n">tipo</span><span class="o">-</span><span class="kt">String</span><span class="o">-</span><span class="n">ejemplo</span><span class="o">&gt;</span> </span></pre></div> </td></tr></table>
gambas
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.