Article View: chile.comp.programacion
Article #2827Re: como pasar variable entre formularios
From: Vinko Vrsalovic
Date: Tue, 27 Sep 2005 05:58
Date: Tue, 27 Sep 2005 05:58
27 lines
1447 bytes
1447 bytes
+mArkO+ <NOSPAMjoin.xtc@gmail.comnospam> dijo: > ups sorry > gran detalle en visual basic 6 :) Una forma es agregar variables globales al formulario de destino y setearlas en el de origen. Por ejemplo, quieres pasar la variable X: Form1 (Con un boton llamado Boton y un textbox llamado TextBox): Private Sub Boton_Click() Form2.X = TextBox.Value Form2.Show End Form2: Public X as Variant Private Sub Form2_Activate() MsgBox X End Disclaimer: Para nada garantizo que sea la forma 'correcta' :) -- V.
Technical Details
Message-ID:
<4338d182@news.vcd.cl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!news.vcd.cl!not-for-mail!not-for-mailReferences:
<dhajl1$gmc$1@news1.nivel5.cl> <4338c85a@news.vcd.cl> <dhalb8$h28$1@news1.nivel5.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,4bd210cd4f6e22f1
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Message-ID: <4338d182@news.vcd.cl>
From: Vinko Vrsalovic <el@vinko.invalid>
Subject: Re: como pasar variable entre formularios
Newsgroups: chile.comp.programacion
References: <dhajl1$gmc$1@news1.nivel5.cl> <4338c85a@news.vcd.cl> <dhalb8$h28$1@news1.nivel5.cl>
User-Agent: tin/1.7.6-20040906 ("Baleshare") (UNIX) (Linux/2.6.10-5-386 (i686))
NNTP-Posting-Host: 200.73.29.150
X-Original-NNTP-Posting-Host: 200.73.29.150
Date: 27 Sep 2005 01:58:44 -0400
X-Trace: news.vcd.cl!not-for-mail 1127797124 200.73.29.150 (27 Sep 2005 01:58:44 -0400)
X-Original-Trace: 27 Sep 2005 01:58:44 -0400, 200.73.29.150
Lines: 27
X-Authenticated-User: vinko
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!news.vcd.cl!not-for-mail!not-for-mail