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

idfType    

简述

返回某信息ID的数据类型。
定义
idfType(ID:Integer):Integer;
参数
名称类型说明
IDInteger整数,某信息的ID号。
返回Integer
整数,返回值对应的数据类型如下
返回值 说明
0 表示返回的数据是整型
1 表示返回的数据是实型
2 表示返回的数据是字符型
3 表示返回的数据是表格型(数组)
-1 表示ID不存在
  • 范例


    TYPES := array( '整型','实数','字符','表格');
      TYPES[-1] := '未知';
    return array('公司全称':TYPES[idftype(10002)],
            '红利比':TYPES[idftype(18007)],
            '分红送股表':TYPES[idftype(18)],
            '未知':TYPES[idftype(99)]);
      


    返回结果:
相关