idfType
简述
返回某信息ID的数据类型。
idfType(ID:Integer):Integer;
名称 | 类型 | 说明 |
---|
ID | Integer | 整数,某信息的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)]);
返回结果:
