天软金融分析.NET函数大全 > 数据仓库函数 > 向导函数

OccuredRepIdOfRepPeriod    

简述
在区间BegReport到EndYear年中,与BegReport报告期同比的报告期中返回表达式exp为真的报告期。
定义
OccuredRepIdOfRepPeriod(exp:Expr;BegReport:integer;EndYear:integer)
参数
名称类型说明
exprTExpression布尔公式表达式
BegReportinteger开始期,开始报告期
EndYearinteger年份,截止年份
  • 范例

    //从2010年开始到2018年,每年年报每股收益大于1.5的报告期

    SetSysParam(pn_stock(),'SZ000002');
    return OccuredRepIdOfRepPeriod(@reportofall(42002,GetSysParam('DefaultRepID'))>1.5,20101231,2018);
    返回:
相关