DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: wujinmiao9527
今日帖子: 15
在线用户: 20
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 bird13 (13) ★☆☆☆☆ -
普通会员
2023/3/15 10:52:57
标题:
FDQuery的日期字段问题 浏览:772
加入我的收藏
楼主: 大佬们好,请问一个日期字段问题,用FDQuery加载MSSQL数据库的Date字段,在win7下编译的程序正常运行,在win10以上系统会提示Type mismatch for field 'rq字段',expecting:WideString actual:Date,在win10编译程序后win7下运行也出现同样提示,这个如何处理?
----------------------------------------------
-QQ:1379585
作者:
男 lyp8899 (lyp8899) ★☆☆☆☆ -
盒子活跃会员
2023/3/15 11:08:42
1楼: 控制面板--区域与语言,看日期时间格式
----------------------------------------------
▄︻┻┳═
作者:
男 bird13 (13) ★☆☆☆☆ -
普通会员
2023/3/15 11:38:16
2楼: 不是日期格式设置问题,是FDQuery在添加date字段后不同版本windows的识别问题,用datetime字段时是不会出错的,而且我相同条件下改成ADO连接数据库是不会报错且正常工作的。
----------------------------------------------
-QQ:1379585
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2023/3/16 1:51:35
3楼: Hierarchy:

try use the "Options" to define "default formats"!!!
----------
FDManager          // for all sub-classes
--- FDConnection    // for all sub-classes
-------FDQuery1... (Datasets at general)  // for this object
----------...
此帖子包含附件:
PNG 图像
大小:13.2K
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2023/3/16 1:53:35
4楼: using "Mapping in FireDAC"
此帖子包含附件:
PNG 图像
大小:11.7K
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 bird13 (13) ★☆☆☆☆ -
普通会员
2023/3/16 10:27:02
5楼:
emailx45

非常感谢,经常下载您提供的插件,目前问题已用您的方法处理。
----------------------------------------------
-QQ:1379585
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2023/3/17 4:18:00
6楼: OK!
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行78.125毫秒 RSS