Results 1 to 2 of 2

Thread: [RESOLVED] Getting an error "Compile Error"- "Method or Data Member Not Found"

  1. #1

    Thread Starter
    New Member ANKANPAL007's Avatar
    Join Date
    Mar 2018
    Posts
    2

    Resolved [RESOLVED] Getting an error "Compile Error"- "Method or Data Member Not Found"

    Hello Friends,
    I am making a simple Program in Visual Basic 6.0 which takes a number and displays the square/square root/cube or cube root of the number...

    My code is :-


    Option Explicit
    Dim a, b As Double

    Private Sub cu_Click()
    a = Val(num.Text)
    b = a ^ 3
    result.Text = b
    End Sub

    Private Sub cur_Click()
    a = Val(num.Text)
    b = a ^ (1 / 3)
    result.Text = b
    End Sub

    Private Sub sq_Click()
    a = Val(num.Text)
    b = a ^ 2
    result.Text = b
    End Sub

    Private Sub sqr_Click()
    a = Val(num.Text)
    b = a ^ (1 / 2)
    result.Text = b
    End Sub


    When I am compiling the program, it gives a message called "Compile Error", then in the next line "Method or Data Member not found"..
    I need a quick help...
    I am new to Visual Basic, so please don't use words that are hard to understand...

    Thanking You
    Attached Images Attached Images     
    Attached Files Attached Files

  2. #2

    Thread Starter
    New Member ANKANPAL007's Avatar
    Join Date
    Mar 2018
    Posts
    2

    Re: [RESOLVED] Getting an error "Compile Error"- "Method or Data Member Not Found"

    Cleared the Index property of all text boxes and now working...
    Thanks to my brain...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width