Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Visual Basic POWER
Name: Denise Date: July 22, 2002 at 10:11:15 Pacific
Comment:
I want to do a simple power function in a program for example
x to the power or y
When I use POWER(x,y) I get an error that POWER is not defined. Do you know if I need to have something else set to use this function?? I am using VB 6!! Please HELP!
Name: Jeff J Date: July 22, 2002 at 11:05:43 Pacific
Reply:
You might be thinking of SQL or something, or maybe pow in C/C++. VB does not have a separate function for power, it overloads the ^ operator...
XtoPowerOfY = x ^ y
Cheers
0
Response Number 2
Name: Hayley Date: July 24, 2002 at 04:23:49 Pacific
Reply:
pow(x,y) usually works for me try looking it up in the help (press f1 in the program)
0
Response Number 3
Name: Defrule Date: August 14, 2002 at 10:41:18 Pacific
Reply:
Public Function Power(X As long, Y As Long) Power = X ^ Y End Function
You have either forgot to create the funcion or maybe you have Privately declared it somewhere else. If you want to make that functon available to the entire program then use PUBLIC Function..... in a Module
Summary: Somebody be the devil's advocate, please! 1) Java is not made by Microsoft and therefore cannot be certified 100% compatible with the Microsoft operating system. The usability of any java code relies...
Summary: With VBScript? No, not unless you had an ActiveX object that would do so for you. You have to realize, VBScript by itself is a very weak scripting language. About the most you could do is get some inp...
Summary: Hi everyone. Need your help. I Am creating a Windows application in Visual basic 6 that writes data into SQL database. My login Form that firstly show when running the app is frmLogin. I have Got a c...