Public Function RectangularSolidCalc( _ Optional ByVal vArea As Variant _ , Optional ByVal vSideOne As Variant _ , Optional ByVal vSideTwo As Variant _ , Optional ByVal vSideThree As Variant _ , Optional ByVal vVolume As Variant _ ) As Variant
RectangularSolidCalc(vSideOne:=1, vSideTwo:=2, vVolume:=10, vArea:="CALC") = 34 RectangularSolidCalc("CALC", 1, 2, Null, 10) = 34 RectangularSolidCalc(100, 2, "CALC", Null, 34) = 1.10419703602177 RectangularSolidCalc(100, 12, "CALC", Null, 200) = "1.38888888888889|-3.83896526696812" ' #4See also:
CubeCalc Function RectangleCalc FunctionSummary: Three 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 argument 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".
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.