力控组态软件ForceControl V7.0后台组件Ado组件的控件方法3
GetValueByIndexFile(int Index,string FileName)
描述: 按照字段索引位置获取文件型数据
返回值: int 0- 失败 1- 成功
参数: Index- 字段索引位置
说明: 按照字段索引位置获取文件型数据
示例: #ADOModule.GetValueByIndexFile(0,#ADOModule.FilePath);// 获取字段索引为 0的数据到指定文件中
关联方法: PutValueByIndexFile,PutValueByFieldFile
GetValueByIndexInt(int Index)
描述: 按照字段索引位置获取数据
返回值: int
参数: Index- 字段索引位置
说明: 按照字段索引位置获取整型数据
示例: #ADOModule.GetValueByIndexInt(0);// 获取字段索引为 0 的数据
关联方法: PutValueByIndexInt,PutValueByFieldInt
GetValueByIndexStr(int Index)
描述: 按照字段索引位置获取数据
返回值: string
参数: Index- 字段索引位置
说明: 按照字段索引位置获取字符型数据
示例: #ADOModule.GetValueByIndexStr(0);// 获取字段索引为 0 的数据
关联方法 : PutValueByIndexStr,PutValueByFieldStr
GetValueByIndexTime(int Index)
描述: 按照字段索引位置获取数据
返回值: int
参数: Index- 字段索引位置
说明: 按照字段索引位置获取时间型数据
示例: #ADOModule.GetValueByIndexTime(0);// 获取字段索引为 0 的数据
关联方法: PutValueByIndexTime,PutValueByFieldTime