润乾报表 4.0 与最新版润乾报表函数对照

阅读(16897) 标签: 函数对照,

本部展示了润乾报表4.0与最新版润乾报表的函数对照,对照出两者中数据集函数、单元格函数、时间日期函数、数学函数、字符串函数、数据类型转换、分页后运算函数的异同。

润乾报表4.0

最新版润乾报表

最新版润乾报表备注

数据集函数 ( 原润乾报表4.0已删除函数为:ds.enumGroup )

ds.avg()

ds.avg()

@r用根集;@a 计数null

ds. bselect1()

ds.bfind(select, {refer1:order1:value1},…,{refer2:order2:value2})

@r用根集

ds. colcount()

ds.fcount()

 

ds.count()

ds.count()

@r用根集;

ds.dcount()

ds.dcount()

@r用根集

ds.dselect()

参见ds.select()

@r用根集(将润乾报表4.0ds.dselect()ds.select()ds.first()ds.last()ds.select1()ds.selectEx()ds.top()合并为集算器的ds.select())

ds.field()

ds.field()

 

ds.fieldname()

ds.fname(fieldNoExp)

 

ds.first()

参见ds.select()

@r用根集(将润乾报表4.0ds.dselect()ds.select()ds.first()ds.last()ds.select1()ds.selectEx()ds.top()合并为集算器的ds.select())

ds.group()

ds.group()

@r用根集,order省略为不排序,>0升序,<0降序;

order1,..,ordern省略时升序

(将润乾报表4.0ds.group()ds.groupEx()合并为最新版润乾报表的ds.group())

ds.groupEx()

参见ds.group()

@r用根集(将润乾报表4.0ds.group()ds.groupEx()合并为润乾表的ds.group())

ds.isfield()

ds.isfield()

 

ds.last()

参见ds.select

@r用根集(将润乾报表4.0ds.dselect()ds.select()ds.first()ds.last()ds.select1()ds.selectEx()ds.top()合并为集算器的ds.select())

ds.max()

ds.max(select,{filter})

@r用根集

ds.min()

ds.min(select,{filter})

@r用根集

ds.plot()

ds.plot(value,list,{filter})

@c包含相等,@z降序,@r用根集

ds.select()

ds.select(select:{order},{filter},{num},{distinct})

ds.select(select,{filter},{num},{distinct};{sort1}:{order1},…)

@r用根集,@z从后数, num省略时返回全部(将润乾报表4.0ds.dselect()ds.select()ds.first()ds.last()ds.select1()ds.selectEx()ds.top()合并为集算器的ds.select())

ds.select1()

参见ds.select()

@r用根集(将润乾报表4.0ds.dselect()ds.select()ds.first()ds.last()ds.select1()ds.selectEx()ds.top()合并为集算器的ds.select())

ds.selectEx()

参见ds.select()

@r用根集(将润乾报表4.0ds.dselect()ds.select()ds.first()ds.last()ds.select1()ds.selectEx()ds.top()合并为集算器的ds.select())

ds.sum()

ds.sum(select,{filter})

@r用根集(将润乾报表4.0ds.dselect()ds.first()ds.last()ds.select1()ds.selectEx()ds.top()合并为集算器的ds.select())

ds.top()

参见ds.select()

@r用根集(将润乾报表4.0ds.dselect()ds.select()ds.first()ds.last()ds.select1()ds.selectEx()ds.top()合并为集算器的ds.select())

单元格函数 (原润乾报表4.0已删除函数为:inputvalue ())

avg()

avg(exp)

@a null元素进行计数

(将润乾报表4.0avg()avg2()合并为最新版润乾报表avg())

avg2()

参见avg(cellExp,exp)

将润乾报表4.0avg()avg2()合并为最新版润乾报表avg()

call()

call(sqlStatement{,arg1{,arg2{,arg3{,……}}}}{;dbName})

将润乾报表4.0call()call2()合并为最新版润乾报表call()

call2()

参见call()

将润乾报表4.0call()call2()合并为最新版润乾报表call()

case()

case()

 

cell()

cell()

 

col()

col()

 

count()

count(exp)

@anull元素进行计数

@d对去除重复内容后的数据进行计数

disp()

disp()

 

ds()

ds()

 

eval()

eval()

 

if()

if(x1:y1,…,xk:yk;y)

 

list()

list(valueExp1{,valueExp2{,valueExp3{,……}}})

@m 各元素递归并集,对内部的list不展开

(将润乾报表4.0list()list2()合并为最新版润乾报表list())

list2()

参见list()

将润乾报表4.0list()list2()合并为最新版润乾报表list()

map()

map()

 

max()

max(x)

max(x,cell)

 

maxc()

maxc()

 

maxwidth()

maxwidth()

 

min()

min()

 

minc()

minc()

 

nvl()

ifn( valueExp1, valueExp2 )

 

plot()

plot( valueExp, ListExp)

@e包含等于,@zlist降序否则升序

query()

query(sqlStatement{,arg1{,arg2{,arg3{,……}}}}{;dbName})

将润乾报表4.0query()query2()合并为最新版润乾报表query()

query2()

参见query()

将润乾报表4.0query()query2()合并为最新版润乾报表query()

row()

row()

 

seq()

seq()

 

sort()

sort(array)

@z降序

sum()

sum(expression)

sum(exp,cellExp)

 

throwe()

throwe({msg})

 

to()

to()

 

value()

value()

 

valueat()

valueat()

 

时间日期函数 (原润乾报表4.0已删除函数为:dayNo() )

age()

age(dateExp{,typeExp{,dateExp2}}) age(stringExp,formatExp{{,typeExp},date2Exp})

 

date()

date(stringExp)

date(year,month,day)

 

dateTime()

datetime(string)

datetime(long)

将润乾报表4.0dateTime()dateTime2()合并为最新版润乾报表datetime ()

dateTime2()

datetime(string, format)

将润乾报表4.0dateTime()dateTime2()合并为最新版润乾报表datetime ()

day()

day(dateExp)

 

dayName()

dayName(dateExp)

 

daysAfter()

interval(datetimeExp1,datetimeExp2)

@y计算两个日期时间型数据相差几年

@q  计算两个日期时间型数据相差几季度

@m 计算两个日期时间型数据相差几月

@s  计算两个日期时间型数据相差几秒

@ms计算两个日期时间型数据相差几毫秒

@r  计算两个日期时间型数据间隔,返回实数

缺省为计算两个日期时间型数据相差几天

(将润乾报表4.0daysAfter()secondsAfter()合并为最新版润乾报表interval())

daysinmonth()

参见days(dateExp)

将润乾报表4.0daysinmonth ()daysinyear()合并为最新版润乾报表days()

daysinyear()

参见days@y(dateExp)

将润乾报表4.0daysinmonth ()daysinyear()合并为最新版润乾报表days()

hour()

hour(datetimeExp)

 

lastday()

elapse(dateExp, n)

将润乾报表4.0lastday()lastmonth ()lastyear()relDate()relTime()合并为最新版润乾报表elapse()

lastmonth()

elapse@m(dateExp, n)

将润乾报表4.0lastday()lastmonth ()lastyear()relDate()relTime()合并为最新版润乾报表elapse()

lastyear()

elapse@y(dateExp, n)

将润乾报表4.0lastday()lastmonth ()lastyear()relDate()relTime()合并为最新版润乾报表elapse()

minute()

minute()

 

month()

month()

 

monthbegin()

pdate@m(dateExp)

将润乾报表4.0monthbegin ()monthend ()queterbegin ()quaterend ()weekbegin()weekend()合并为最新版润乾报表pdate()

monthend()

pdate@me(dateExp)

将润乾报表4.0monthbegin ()monthend ()queterbegin ()quaterend ()weekbegin()weekend()合并为最新版润乾报表pdate()

now()

now()

 

quaterbegin()

pdate@q(dateExp)

将润乾报表4.0monthbegin ()monthend ()queterbegin ()quaterend ()weekbegin()weekend()合并为最新版润乾报表pdate()

quaterend()

pdate@qe(dateExp)

将润乾报表4.0monthbegin ()monthend ()queterbegin ()quaterend ()weekbegin()weekend()合并为最新版润乾报表pdate()

relDate()

参见elapse(dateExp, n)

将润乾报表4.0lastday()lastmonth ()lastyear()relDate()relTime()合并为最新版润乾报表elapse()

relTime()

参见elapse@s(dateExp, n)

将润乾报表4.0lastday()lastmonth ()lastyear()relDate()relTime()合并为最新版润乾报表elapse()

second()

second(datetimeExp)

 

secondsAfter()

参见interval@s(datetimeExp1,datetimeExp2)

将润乾报表4.0daysAfter()secondsAfter()合并为最新版润乾报表interval()

time()

time()

 

weekbegin()

pdate@w(dateExp)

将润乾报表4.0monthbegin ()monthend ()queterbegin ()quaterend ()weekbegin()weekend()合并为最新版润乾报表pdate()

weekend()

pdate@we(dateExp)

将润乾报表4.0monthbegin ()monthend ()queterbegin ()quaterend ()weekbegin()weekend()合并为最新版润乾报表pdate()

year()

year(dateExp))

 

数学函数

abs()

abs()

 

ceil()

ceil()

 

cos()

cos()

 

exp()

exp()

 

fact()

fact()

 

floor()

floor()

 

log()

ln(numberExp)

 

log10()

lg (numberExp)

 

pi()

pi()

 

pow()

power(xExp, nExp)

 

rand()

rand()

 

round()

round()

 

sign()

sign()

 

sin()

sin()

 

sqrt()

sqrt()

 

tan()

tan()

 

asin()

asin()

 

acos()

acos()

 

atan()

atan()

 

字符串函数 (原润乾报表4.0已删除函数为:ltrim ()rtrim())

fill()

fill(s, n)

 

left()

left(string, n)

 

len()

len(str)

 

like()

like( stringExp, formatExp{, ignoreCase} )

 

link()

link(serviceName{,jspArgNames,jspArgValues{,reportArgNames,reportArgValues}})

 

lower()

lower(str)

 

mid()

mid(s, start{, end})

 

pos()

pos()

 

right()

right(s, n)

 

rmQuote()

rmquote(exp)

 

rmb()

rmb()

 

rplc()

replace( src,a,b)

 

space()

space()

 

split()

split()

 

trim()

trim(s)

 

upper()

upper()

 

wordCap()

wordcap()

 

数据类型转换

asc()

asc( string{, nPos} )

 

bigint()

bigint(stringExp)

bigint(numberExp)

 

char()

char( int )

 

chn()

chn(intExp{,abbrivateExp{, uppercaseExp }} )

 

decimal()

decimal()

 

double()

double()

 

float()

float()

 

hexstring()

hexstring(dataExp{,spaceExp})

 

int()

int()

 

isdate()

isdate()

 

isEmpty ()

isempty ()

 

isnumber()

isnumber()

 

istime()

istime()

 

long()

long()

 

number()

number()

 

rgb()

rgb(redIntExp, greenIntExp, blueIntExp{, alphaIntExp} )

 

str()

string(expression{, format})

 

分页后运算函数

pno()

pno()

@x 在横向分页的页表中的页码

@y 在纵向分页的页表中的页码

pcount()

pcount()

@x 在横向分页的页表中的页码

@y 在纵向分页的页表中的页码

pcsum()

pcsum({cellExp})

 

pccount()

pccount({cellExp})