|
-
Jan 27th, 2006, 10:40 PM
#1
Thread Starter
New Member
[RESOLVED] Noob here and I need some simple help
OK im new to this sight and could use some help. I am Makeing a simple program that will work but if you donot put ant thing in the spacesit messes up. its pretty much a a program for easy use of the distance formula.
heres the code i have all i need to program in is some way if the box is left blank then it equals 0
Private Sub cmdAdd_Click()
X1 = txtX1.Text
Y1 = txtY1.Text
X2 = txtX2.Text
Y2 = txtY2.Text
B = (X1 - X2) ^ 2 + (Y1 - Y2) ^ 2
B = Sqr(B)
picAnswer.Print B
End Sub
if you guys can help I would really apprieate it
Last edited by Hack; Jan 30th, 2006 at 06:53 AM.
<-Sythe-<<
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|