刚开始用BCB6,遇到一个小问题,还请帮我一下,谢谢

xc2927 2004-12-06 06:00:57
各位,以前用BCB5现在改成6了,可是下面一句怎么会有问题

if (Trim(ado_deliver->FieldValues["Number"])=="123456")

这个是什么问题
...全文
100 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
xc2927 2004-12-08
  • 打赏
  • 举报
回复
我把["Number"]改成了("Number")就对啦,但在以前没这样用过呀
xc2927 2004-12-08
  • 打赏
  • 举报
回复
不好意思 ,我改成上面的这种,也不行呀
shally5 2004-12-07
  • 打赏
  • 举报
回复
结贴吧!
lucho 2004-12-07
  • 打赏
  • 举报
回复
if (ado_deliver->FieldByName["Number"]->AsString.Trim()=="123456")
laisf 2004-12-06
  • 打赏
  • 举报
回复
改成
if (ado_deliver->FieldByName["Number"]->AsString.Trim()=="123456")
xc2927 2004-12-06
  • 打赏
  • 举报
回复
大概有两种错误提示,其它有相同的语句也是一样的
[C++ Error] Unit1.cpp(161): E2015 Ambiguity between '_fastcall Sysutils::Trim(const System::AnsiString)' and '_fastcall Sysutils::Trim(const System::WideString)'

[C++ Error] Unit1.cpp(172): E2015 Ambiguity between '_fastcall Variant::operator wchar_t *() const' and '_fastcall Variant::operator wchar_t * *()'

[C++ Error] Unit1.cpp(299): E2015 Ambiguity between '_fastcall Variant::operator bool() const' and '_fastcall Variant::operator __int64() const'

就是有这几类提示
xtzyz 2004-12-06
  • 打赏
  • 举报
回复
有什么问题,提示什么

13,826

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧