Public Function RightTriangleCalc( _ Optional ByVal vArea As Variant _ , Optional ByVal vBase As Variant _ , Optional ByVal vDiagonal As Variant _ , Optional ByVal vHeight As Variant _ , Optional ByVal vPerimeter As Variant _ ) As Variant
RightTriangleCalc(vArea:=10, vBase:=4, vPerimeter:="CALC") = 15.4031242374328 RightTriangleCalc(10, 4, Null, Null, "CALC") = 15.4031242374328 RightTriangleCalc(10, Null, 12, "CALC", Null) = 11.8813494967181 RightTriangleCalc(Null, 3, 30, Null, "CALC") = 62.8496231131986 RightTriangleCalc(Null, "CALC", 10, 23, Null) = "0|20.712315177208"See also:
RectangleCalc FunctionSummary: Two of the arguments should contain a numeric value--the given values for those properties. Pass the word "CALC" to the argument whose value is to be calculated and returned by this function. The other arguments should be missing or Null or non-numeric. Function returns Null if it could not calculate the requested property from the values provided. Otherwise, the function returns the value of the property whose argument was passed the word "CALC".
Note: Cannot currently calculate the Height from the Base and Perimeter.
Note: Cannot currently calculate the Base from the Height and Perimeter.
Note: Cannot currently calculate the Base and Height from the Area and Perimeter.
Note: Cannot currently calculate the Base and Height from the Diagonal and Perimeter.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.