急急急!哪位大虾指点迷经

bigbear2046 2003-07-08 01:21:44
为什么下面这段代码可行?
string rc,org,d
string modstring,where_clause
dw_1.settransobject(sqlca)
org=dw_1.Describe("DataWindow.Table.Select")
d="A2"
where_clause="WHERE Gid>200"
modstring="Datawindow.Table.Select='" + org + where_clause + "'"
rc=dw_1.Modify(modstring)
if rc="" then
dw_1.Retrieve()
end if
可是下面一段不可以?(区别仅仅是Gid为整型,did为字符型)
string rc,org,d
string modstring,where_clause
dw_1.settransobject(sqlca)
org=dw_1.Describe("DataWindow.Table.Select")
d="A2"
where_clause="WHERE Did=A"
modstring="Datawindow.Table.Select='" + org + where_clause + "'"
rc=dw_1.Modify(modstring)
if rc="" then
dw_1.Retrieve()
end if
实在不明白,望指点,不够再加
...全文
48 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

611

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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