Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Method or data member not found
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Method or data member not found

 Post Reply Post Reply
Author
Message
Tiny View Drop Down
Newbie
Newbie
Avatar

Joined: 11 August 2005
Location: Ireland
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tiny Quote  Post ReplyReply Direct Link To This Post Topic: Method or data member not found
    Posted: 11 August 2005 at 1:37pm

Hi all,

I have just started Vb 6. I'm using the the microsoft Vb 6 professional step by step guide book and I am tackling the first problem, creating a program called Lucky 7.

After entering the program code (3 Times!) and running it, I keep getting a compiler error: Method or data member not found. this highlights the word .Caption = beside Label1

As I'm only a beginner I haven't a clue whats wrong!

Below is the code I entered

Private Sub Command1_Click()
    Image1.Visible = False         & nbsp;   ' hide coins
    Label1.Caption = Int(Rnd * 10) ' pick numbers
    Label2.Caption = Int(Rnd * 10)
    Label3.Caption = Int(Rnd * 10)
    'if any caption is 7 display coin stack and beep
    If (Label1.Caption = 7) Or (Label2.Caption = 7) _
      Or (Label3.Caption = 7) Then
      Image1.Visable = True
      Beep
    End If
End Sub

I would be grateful of any suggestions

Tiny

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 11 August 2005 at 2:00pm
You spelled "Visible" wrong

....
     Or (Label3.Caption = 7) Then
      Image1.Visable = True
      Beep
    End If
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.