Argument trop nombreux pour public sub show
Jacki
-
Polux31 Messages postés 7219 Statut Membre -
Polux31 Messages postés 7219 Statut Membre -
Bonjour,
Débutant en vb.net solicite votre aide. Merci
mon code est:
If afficher.Text = f Then
var.Show("your gender is", f)
la ligne d'erreur est:
argument trop nombreux pour public sub show
Débutant en vb.net solicite votre aide. Merci
mon code est:
If afficher.Text = f Then
var.Show("your gender is", f)
la ligne d'erreur est:
argument trop nombreux pour public sub show
4 réponses
-
Bonjour,
Effectivement ya trop d'argument pour la fonction show().
Essais plutôt If afficher.Text = f Then
var.Show("your gender is f") -
-
mais f doit etre affiché en tant que variable.
-
-
dim f as string = female
dim m as string = male
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If afficher.Text = "f" Then
label1.show = ("your gender is " f)
End If
If afficher.Text = "m" Then
label1.show = ("your gender is " m)
End If
End Sub -
-
-
ma question est pour faire simple: peut on afficher du texte + une_variable dans .show
ex: label.show("mon texte" ma_variable)
si oui! quelle est la syntaxe appropriée?