Public Function CylinderCalc( _ Optional ByVal vArea As Variant _ , Optional ByVal vDiameter As Variant _ , Optional ByVal vHeight As Variant _ , Optional ByVal vRadius As Variant _ , Optional ByVal vVolume As Variant _ ) As Variant
CylinderCalc("CALC", Null, 5, 2, Null) = 87.9645943005142 CylinderCalc(vHeight:=5, vRadius:=2, vArea:="CALC") = 87.9645943005142 CylinderCalc(vHeight:=3, vVolume:=10, vDiameter:="CALC") = 2.06012907745701 IsNull(CylinderCalc(vHeight:=3, vArea:=10, vDiameter:="CALC")) = True ' #3See also:
ConeCalc 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".
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.