itemchanged事件遇到的问题

GoodYes 2006-06-23 04:29:16
大家都知道在itemchanged中可以通过Return 返回不同的值来表示是否允许接受输入的值,以及光标是否可以跳至下一列,现有一问题.如何在些事件中既不接受输入的值,又不让光标跳走.????

我原来在输入时遇到不需要的值用RETURN 2 ,此时输入的新值是不会接收了,但光标已经跳到了下一列(我写了回车事件),这样做的话,操作员还要将光标重新移回来才可以再次输入,所以想请问大家,有没有什么办法可以让在遇到不需要的值是,光标不也离开,而且数据窗口也不接收.....
...全文
302 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
lywei 2006-06-27
  • 打赏
  • 举报
回复
我以前遇到过这样的问题
这样的话数据窗口会触发editchanged事件
你可以在editchanged事件中做相应的控制
zzxwn 2006-06-27
  • 打赏
  • 举报
回复

return 1
someufo 2006-06-26
  • 打赏
  • 举报
回复

post setcolumn("列名")
return 2
我好象在Pdriver回答过这问题
feeling_68 2006-06-24
  • 打赏
  • 举报
回复
支持
lacolor 2006-06-23
  • 打赏
  • 举报
回复
支持!
gjz_1209 2006-06-23
  • 打赏
  • 举报
回复
return 1
Paladin_china 2006-06-23
  • 打赏
  • 举报
回复
Set the return code to affect the outcome of the event:

0 (Default) Reject the data value and show an error message box
1 Reject the data value with no message box
2 Accept the data value
3 Reject the data value but allow focus to change


所以应该是return 1 的说

1,075

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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