Link to home
Start Free TrialLog in
Avatar of bnater
bnaterFlag for Netherlands

asked on

problem with visual basci program

compile error:
invalid use off property
rivate Sub cmdEnter_Click()
 
    txtNaam.Text = ""
 
If IsNumeric(txtNaam.Text) Then 'bepaalt of invoer getal is
 
 
 
    ' herhaling
    For teller = 1 To 100
        uitkomst = (worp * tafel)
        lblUitkomst.Caption (uitkomst)  ERROR COMPILE
    Next worp
 
picGoed.Visible = True
picFout.Visible = False
 
Else
picFout.Visible = True
picGoed.Visible = False
End If
 
 
End Sub
 
 
Private Sub Form_Load()
lblTafel.Caption = tafel
lblSom.Caption = tafel
Randomize
    worp = Int((10 - 1 + 1) * Rnd + 1)
lblGetal.Caption = worp
 
 
 
 
 
End Sub
 
Private Sub lblUitkomst_Click()
uitkomst = lblSom * lblGetal
 
End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bnater

ASKER

thx
If it worked perfectly then why was it only worth a 'B' grade ?