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

ContinuedMatchOfNReport    

简述
当前时间ReportID向前推N年,若从ReportID-N到ReportID时间均存在报告Exp则返回1,否则返回0,与系统参数(股票)相关。
定义
ContinuedMatchOfNReport(Exp:Expr;ReportID:integer;N:integer):Boolean
参数
名称类型说明
ExpExpr布尔公式表达式
ReportIDinteger报告期
Ninteger整数
返回Boolean整数
  • 范例
    判断2014到2015这两年平安银行年报是否全部存在

    SetSysParam(pn_stock(),'SZ000001');
    return ContinuedMatchOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,2);
    //返回:1
相关