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

OccuredOfNReport    

简述
当前时间ReportID向前推N年,返回从ReportID-N到ReportID时间发生报告Exp的次数,与系统参数(股票)相关。
定义
OccuredOfNReport(Exp:Expr;ReportID:integer;N:integer):integer
参数
名称类型说明
ExpExpr布尔公式表达式
ReportIDinteger报告期
Ninteger整数
返回integer整数
  • 范例
    返回平安银行截止到2015年12月31日的所有年报数量

    SetSysParam(pn_stock(),'SZ000001');
    returnOccuredOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,100);
    //返回:25
相关