bonsoir, j'ai un petit soucis concernant des renvois automatisé suivant si le système est détecté en 32 ou 64, voici mon bout de code :
ensuite, j'ai créé un bouton ou j'aimerais bien rappeler variable1, mais comme il est dans un autre sub, je ne sais pas comment le rappeler?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 Private Sub menu_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim architecture As String architecture = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE") If architecture = "x86" Then affiche_version.Text = "Edition 32 Bits détectée" Dim variable1 As String variable1 = "chemin_1" End If If architecture = "AMD64" Then affiche_version.Text = "Edition 64 Bits détectée" Dim variable1 As String variable1 = "chemin1" End If End Sub
Si une âme charitable passe dans le coin, je la remercie d'avance.![]()
Partager