知识库 > 金融建模 > 公用函数 > 扩展函数 > .Net扩展函数 > 股票 > 基本情况 > 基本情况

Stock2IndexId    

简述
返回股票对应的指数代码。
定义

Stock2IndexId ():String
参数


返回:指数代码
  • 范例:

    //返回"SZ000001"的指数代码
    ov:=BackUpSystemParameters();
    SetSysParam(pn_stock(),"SZ000001");
    R:= Stock2IndexId();
    RestoreSystemParameters(ov);
    Return R;
    //结果:"SZ399107"

    参考
      
相关