Public Function CircleCalc( _ Optional ByVal vArea As Variant _ , Optional ByVal vCircumference As Variant _ , Optional ByVal vDiameter As Variant _ , Optional ByVal vRadius As Variant _ ) As Variant
CircleCalc(Null, Null, 10, "CALC") = 5 CircleCalc(vDiameter:=10, vRadius:="CALC") = 5 CircleCalc(vDiameter:=10, vArea:="CALC") = 78.5398163397448 CircleCalc(vArea:=79, vRadius:="CALC") = 5.01462670679677See also:
SphereCalc FunctionSummary: One of the arguments should contain a numeric value--the given value for that property. 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 none of the arguments can be fixed up to a real or complex number (as defined by the IsComplex function). 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.