OVH Cloud OVH Cloud

variable vb6

1 réponse
Avatar
thetigers
je ne comprends pas pourquoi cela ne marche pas

form1
public xx as integer

form2
xx=1

et quand je fait
form3
if xx=1 then
xx=>vide

pourquoi?

1 réponse

Avatar
François Picalausa
"thetigers" a écrit dans le message de
news:060901c3c9f9$e4c8a420$
je ne comprends pas pourquoi cela ne marche pas

form1
public xx as integer

form2
xx=1

et quand je fait
form3
if xx=1 then
xx=>vide

pourquoi?



Bonjour/soir,

Peut-être parce que ta variable n'est que publique et pas globale?
Globable => publi dans un module standard
Sinon:
Form1.xx = 1
If Form1.xx = 1 Then
...
End If

--
François Picalausa (MVP VB)
FAQ VB : http://faq.vb.free.fr
MSDN : http://msdn.microsoft.com