注册 登录
编程论坛 PowerBuilder

Accpttext() 的用法

wl24165267 发布于 2006-07-12 19:13, 1202 次点击
网友肯请指点一下Accpttext() 的用法,在这里谢谢了
我一直感觉这个函数好象什么用的都没有啊,请指点一下它要在什么时候用到呢?
3 回复
#2
fgypblt2006-07-13 09:54
accpttext?请描述详细些。

不是pb默认自带的
accpt "录入" to tj 以及java的accpt()。非pb
#3
潇洒老乌龟2006-07-13 11:06
Applies the contents of the DataWindow's edit control to the current item in the buffer of a DataWindow control or DataStore. The data in the edit control must pass the validation rule for the column before it can be stored in the item.

就是获取数据窗口缓存中的数据.
#4
fgypblt2006-07-13 11:31

呵呵
pb中是有个AcceptText(),在此一并说说

pb对录入数据操作的判断顺序是:不改变不操作。当数据改变时触发数据有效性检验,触发change等语句。

accepttext()语法见pb联机帮助
一般录入数据有效性时有提示两遍的情况(失去焦点时又检验一次)。
用于检验编辑框中的内容:检验并return,要通过编程解决,判断为未检验的数据执行accepttext(),在相关Error等要执行的事件中 设数据已检验标志为true。




[此贴子已经被作者于2006-7-13 11:44:11编辑过]

1