SumOfRepPeriod2
简述
表达式区间和
SumOfRepPeriod2(Exp:String;BegReport:Integer;EndReport:Integer;ReportType:Integer):Real
名称 | 类型 | 说明 |
---|
Exp | String | 字符串,函数表达式 |
BegReport | Integer | 整数,开始报告期 |
EndReport | Integer | 整数,截止报告期 |
ReportType | Integer | 整数,报告期类型
|
返回 | Real | 实数。表达式的区间和 |
//对SZ000001在2020年年报至2022年报的营业收入和。
SetSysParam(pn_stock(),"SZ000001");
return SumOfRepPeriod2(@reportofall(46002,GetSysParam('DefaultRepID')),20201231,20221231,0);
//返回:502820000000