VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Calculate Slope of Two Points

by Boba Fett (1 Submission)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 13th April 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Calculate Slope of Two Points

API Declarations


'Name the boxes xpos1, ypos1, xpos2, ypos2, and slopeans
'name the labels First X, First Y, Second X, and Second y and Answer 'respectively

Rate Calculate Slope of Two Points



xpos1.text = x
xpos2.text = x2
ypos1.text = y
ypos2.text = y2

c = (y2-y)\(x2-x)

slopeans.text = c

Download this snippet    Add to My Saved Code

Calculate Slope of Two Points Comments

No comments have been posted about Calculate Slope of Two Points. Why not be the first to post a comment about Calculate Slope of Two Points.

Post your comment

Subject:
Message:
0/1000 characters