打不到VarAsType的解决办法
来源:互联网 发布:python还是c 编辑:程序博客网 时间:2024/04/29 21:33
在uses单元加入Variants!
VarType function from Variants unit in Delphi 7
In Delphi 5, VarType function is declared in Systems unit. In Delphi 7, it is moved to Variants unit.
Declaration: property Values[const name: String]: Variant
My problem is the statement Values['fieldname']:= 0 gives problem and the statement Values['fieldname']:= StrToInt('0') seems to work.
The field in the table is an integer field.
The same thing happens with a float field, the statement Values['fieldname']:= 1 gives problem and the statement Values['fieldname']:= StrToFloat('1') seems to work.
Does the Variant need to be "informed" what datatype it is with the help of functions like StrToInt and StrToFloat?
Declaration: property Values[const name: String]: Variant
My problem is the statement Values['fieldname']:= 0 gives problem and the statement Values['fieldname']:= StrToInt('0') seems to work.
The field in the table is an integer field.
The same thing happens with a float field, the statement Values['fieldname']:= 1 gives problem and the statement Values['fieldname']:= StrToFloat('1') seems to work.
Does the Variant need to be "informed" what datatype it is with the help of functions like StrToInt and StrToFloat?
- 打不到VarAsType的解决办法
- 检索不到数据源的解决办法
- Asterisk检测不到外线挂机的解决办法
- scrt连接不到centos系统的解决办法
- Asterisk检测不到外线挂机的解决办法
- 笔记本电脑检测不到无线网络的解决办法
- 连接不到SQL SERVER 2008的解决办法
- 重装系统当识别不到硬盘的解决办法
- 联想笔记本电脑连接不到无线网络的解决办法
- eclipse查看不到源码的解决办法
- UITableViewCell分割线不到头的解决办法
- xmpp获取不到联系人的解决办法
- (C++)viScanf读取不到数据的解决办法
- fiddler抓不到HTTPs的包解决办法
- DDMS中看不到Devices的解决办法
- LayUI表单获取不到data的解决办法
- Linux中查不到ip的解决办法
- 华为手机无法打logcat的解决办法
- 三个旅人的雨天哲学
- 静态语言和动态语言异同,解释型语言、动态语言、脚本语言的关系
- 基于所提供的凭据,您没有权限查看此目录或网页;HTTP 错误 401.2 - 未授权:服务器配置导致登录失败
- 一道有趣的面试题
- substring的用法
- 打不到VarAsType的解决办法
- 打印自己的程序
- XSL:XSL基础学习第一部分
- 数据库的ID字段自动加1
- 对.net事件的看法 (转博客园)
- XSL:XSL基础学习第二部分
- zip版tomcat的安装
- zip版tomcat的安装
- 源代码网站