Package mondrian.olap.fun.vba
Class Vba
java.lang.Object
mondrian.olap.fun.vba.Vba
Implementations of functions in the Visual Basic for Applications (VBA)
 specification.
 
The functions are defined in MSDN .
- Since:
 - Dec 31, 2007
 - Author:
 - jhyde
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic doubleabs(double number) static intstatic intstatic intstatic doubleatn(double number) static booleanstatic bytestatic Datestatic doublestatic Stringchr(int charCode) static StringchrB(int charCode) static StringchrW(int charCode) static intstatic doublecos(double number) static Datedate()static Datestatic longstatic longstatic longstatic intstatic intstatic intstatic DatedateSerial(int year, int month, int day) static Datestatic intstatic doubledDB(double cost, double salvage, double life, double period) static doubledDB(double cost, double salvage, double life, double period, double factor) static doubleexp(double number) static intstatic StringformatCurrency(Object expression) static StringformatCurrency(Object expression, int numDigitsAfterDecimal) static StringformatCurrency(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit) static StringformatCurrency(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers) static StringformatCurrency(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers, int groupDigits) static StringformatDateTime(Date date) static StringformatDateTime(Date date, int namedFormat) static StringformatNumber(Object expression) static StringformatNumber(Object expression, int numDigitsAfterDecimal) static StringformatNumber(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit) static StringformatNumber(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers) static StringformatNumber(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers, int groupDigits) static StringformatPercent(Object expression) static StringformatPercent(Object expression, int numDigitsAfterDecimal) static StringformatPercent(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit) static StringformatPercent(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers) static StringformatPercent(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers, int groupDigits) static doublefV(double rate, double nPer, double pmt) static doublefV(double rate, double nPer, double pmt, double pv) static doublefV(double rate, double nPer, double pmt, double pv, boolean type) static Stringstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic doubleiPmt(double rate, double per, double nPer, double PV) static doubleiPmt(double rate, double per, double nPer, double PV, double fv) static doubleiPmt(double rate, double per, double nPer, double PV, double fv, boolean due) static doubleIRR(double[] valueArray) static doubleIRR(double[] valueArray, double guess) booleanstatic booleanbooleanbooleanbooleanbooleanbooleanstatic Stringstatic Stringstatic doublelog(double number) static Stringstatic Stringstatic Stringstatic intstatic doubleMIRR(double[] valueArray, double financeRate, double reinvestRate) static intstatic StringmonthName(int month, boolean abbreviate) static Datenow()static doublenPer(double rate, double pmt, double pv, double fv, boolean due) static doublenPV(double r, double[] cfs) static Stringstatic doublepmt(double rate, double nPer, double pv, double fv, boolean due) static doublepPmt(double rate, double per, double nPer, double PV) static doublepPmt(double rate, double per, double nPer, double PV, double fv) static doublepPmt(double rate, double per, double nPer, double PV, double fv, boolean due) static doublepV(double rate, double nper, double pmt, double fv, boolean due) static doublerate(double nPer, double pmt, double PV) static doublerate(double nPer, double pmt, double PV, double fv) static doublerate(double nPer, double pmt, double PV, double fv, boolean type) static doublerate(double nPer, double pmt, double PV, double fv, boolean due, double guess) static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic doubleround(double number) static doubleround(double number, int numDigitsAfterDecimal) static Stringstatic intstatic intsgn(double number) static doublesin(double number) static doublesLN(double cost, double salvage, double life) static Stringspace(int number) static doublesqr(double number) static Stringstatic intstatic intstatic Stringstring(int number, char character) static StringstrReverse(String expression) static doublesYD(double cost, double salvage, double life, double period) static doubletan(double number) static Datetime()static floattimer()static DatetimeSerial(int hour, int minute, int second) static Datestatic Stringstatic Stringstatic doublestatic intstatic intstatic StringweekdayName(int weekday, boolean abbreviate, int firstDayOfWeek) static int 
- 
Constructor Details
- 
Vba
public Vba() 
 - 
 - 
Method Details
- 
cBool
 - 
cByte
 - 
cDate
 - 
cDbl
 - 
cInt
 - 
fix
 - 
hex
 - 
int_
 - 
oct
 - 
str
 - 
val
 - 
dateAdd
 - 
dateDiff
 - 
dateDiff
 - 
dateDiff
 - 
datePart
 - 
datePart
 - 
datePart
 - 
date
 - 
dateSerial
 - 
dateValue
 - 
day
 - 
hour
 - 
minute
 - 
month
 - 
now
 - 
second
 - 
time
 - 
timeSerial
 - 
timeValue
 - 
timer
public static float timer() - 
weekday
 - 
weekday
 - 
year
 - 
dDB
public static double dDB(double cost, double salvage, double life, double period)  - 
dDB
public static double dDB(double cost, double salvage, double life, double period, double factor)  - 
fV
public static double fV(double rate, double nPer, double pmt)  - 
fV
public static double fV(double rate, double nPer, double pmt, double pv)  - 
fV
public static double fV(double rate, double nPer, double pmt, double pv, boolean type)  - 
iPmt
public static double iPmt(double rate, double per, double nPer, double PV)  - 
iPmt
public static double iPmt(double rate, double per, double nPer, double PV, double fv)  - 
iPmt
public static double iPmt(double rate, double per, double nPer, double PV, double fv, boolean due)  - 
IRR
public static double IRR(double[] valueArray)  - 
IRR
public static double IRR(double[] valueArray, double guess)  - 
MIRR
public static double MIRR(double[] valueArray, double financeRate, double reinvestRate)  - 
nPer
public static double nPer(double rate, double pmt, double pv, double fv, boolean due)  - 
nPV
public static double nPV(double r, double[] cfs)  - 
pPmt
public static double pPmt(double rate, double per, double nPer, double PV)  - 
pPmt
public static double pPmt(double rate, double per, double nPer, double PV, double fv)  - 
pPmt
public static double pPmt(double rate, double per, double nPer, double PV, double fv, boolean due)  - 
pmt
public static double pmt(double rate, double nPer, double pv, double fv, boolean due)  - 
pV
public static double pV(double rate, double nper, double pmt, double fv, boolean due)  - 
rate
public static double rate(double nPer, double pmt, double PV)  - 
rate
public static double rate(double nPer, double pmt, double PV, double fv)  - 
rate
public static double rate(double nPer, double pmt, double PV, double fv, boolean type)  - 
rate
public static double rate(double nPer, double pmt, double PV, double fv, boolean due, double guess)  - 
sLN
public static double sLN(double cost, double salvage, double life)  - 
sYD
public static double sYD(double cost, double salvage, double life, double period)  - 
isArray
 - 
isDate
 - 
isError
 - 
isMissing
 - 
isNull
 - 
isNumeric
 - 
isObject
 - 
typeName
 - 
abs
public static double abs(double number)  - 
atn
public static double atn(double number)  - 
cos
public static double cos(double number)  - 
exp
public static double exp(double number)  - 
log
public static double log(double number)  - 
round
public static double round(double number)  - 
round
public static double round(double number, int numDigitsAfterDecimal)  - 
sgn
public static int sgn(double number)  - 
sin
public static double sin(double number)  - 
sqr
public static double sqr(double number)  - 
tan
public static double tan(double number)  - 
asc
 - 
ascB
 - 
ascW
 - 
chr
 - 
chrB
 - 
chrW
 - 
formatCurrency
 - 
formatCurrency
 - 
formatCurrency
 - 
formatCurrency
 - 
formatCurrency
 - 
formatDateTime
 - 
formatDateTime
 - 
formatNumber
 - 
formatNumber
 - 
formatNumber
 - 
formatNumber
 - 
formatNumber
 - 
formatPercent
 - 
formatPercent
 - 
formatPercent
 - 
formatPercent
 - 
formatPercent
 - 
inStr
 - 
inStr
 - 
inStr
 - 
inStrRev
 - 
inStrRev
 - 
inStrRev
 - 
lCase
 - 
lTrim
 - 
left
 - 
mid
 - 
mid
 - 
monthName
 - 
rTrim
 - 
replace
 - 
replace
 - 
replace
 - 
replace
 - 
right
 - 
space
 - 
strComp
 - 
strComp
 - 
strReverse
 - 
string
 - 
trim
 - 
weekdayName
 
 -