Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Utilisez une valeur dans une autre form [VB6]

Featured Replies

Posté(e)

Hello, je fais un petit logiciel pour Msn et comme il va intéréssé un paquet de monde je le fais international.

Tout est prêt, il manque plus

que la langue. La première form qui s'ouvre demande la langue comme ça

Public Sub Form_Load()
List1.AddItem "FR"
List1.AddItem "ES"
List1.AddItem "EN"
List1.AddItem "NL"
Dim Lang As String
End Sub

Public Sub List1_Click()
If List1.Text = "FR" Then
Lang = "FRFR.MCO"
ElseIf List1.Text = "ES" Then
Lang = "ESES.MCO"
ElseIf List1.Text = "EN" Then
Lang = "ENUS.MCO"
ElseIf List1.Text = "NL" Then
Lang = "NLNL.MCO"
End If
If Lang <> "" Then
Visible = False
Form1.Show
End If
End Sub

Si je met une msgbox à la fin j'ai bien ce que je veux en valeur de Lang selon où la personne a cliqué mais impossible de me servir de Lang ailleurs. Any idea ?

J'ai déjà essayé ça http://vb.developpez.com/faq/?page=Langage#dans_form leur 3 ne passe pas et je vois me^me pas ce qu'il a à faire là

EDIT : trouvé, il fallait mettre public Lang as string dans mon form là et dans celui où j'en ai besoin mettre Form7.Lang. Merci à zazaraignée :mad2:

Modifié par Goshi

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.