Vb Code

A Member? Please Login  
type your username and password to login
Date: October 14, 2008, 06:53 PM
249903 members and 148591 Topics
Latest Member: ujus_bless
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Vb Code
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Vb Code  (Read 236 views)
master d (m)
Vb Code
« on: June 11, 2007, 05:10 PM »

can anyone help me with the solution to this vb 6.0 code for almighty formular, cause i'm having
problem with the SQUARE ROOT

    dim a, b, c, x1,x 2 as double
    a=val(text1.text)
    b=val(text2.text)
    c=val(text3.text)

    x1= (-b+sqrt(b^2-4*a*c))/(2*a)
    x2= (-b-sqrt(b^2-4*a*c))/(2*a)
   
    text4.text= x1
    text5.text= x2

please I NEED VB 6.0 CODE  cause i'm having problem with the square root
IG
Re: Vb Code
« #1 on: June 15, 2007, 06:31 PM »

The function for square root is sqr() and not sqrt().
Hope that solves your problem.
master d (m)
Re: Vb Code
« #2 on: June 18, 2007, 07:02 PM »

thanx a lot IG
 A Software Company In Kaduna  Using Next/prev Button To Display Array Elements  In Need Of A Career Mentor (programming ).  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Job Talk Jobs/Vacancies (2) Career Talk Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.