请高手赐教

tiedaner 2003-07-22 03:55:32
数据窗口中怎样让字段在输入时的状态由插入变成覆盖,查了好久没什么结果
...全文
37 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
tiedaner 2003-07-22
  • 打赏
  • 举报
回复
thank you !!
ldq_pb 2003-07-22
  • 打赏
  • 举报
回复
看帮助吧,用setitemstatus()函数设置就可以了,下面是pb帮助里的

This code sets the status of row 5 in the primary buffer of dw_rpt to DataModified! if its status is currently NewModified!:

short status = -1;

status = dw_rpt.getItemStatus(5, (short)0,

dw_rpt.Primary);

if (status == dw_rpt.NewModified) {

dw_rpt.setItemStatus(5, (short)0,

dw_rpt.Primary, dw_rpt.DataModified);

}
Thinkinger 2003-07-22
  • 打赏
  • 举报
回复
dwcontrol.setitemstatus(row, 0, primary!, datamodified!)

609

社区成员

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

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