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