如何为更改的文本框获取旧值和新值 [英] how to get both old and new value for a changed text box
问题描述
我想获得对文本
框进行更改的旧值和新值,以便我可以将它们存储在更改历史记录表中。
最好的方法是什么?我刚刚学习VB 2005;从MS Access移植
应用程序,我可以使用TextBox.OldValue
构造。
TIA,>
Kathy
I would like to get the old and new value for a change made to a text
box so that I can store them in a change history table. What is the
best way to do this? I am just learning VB 2005; porting an
application from MS Access where I could just use the TextBox.OldValue
construct.
TIA,
Kathy
推荐答案
Hello Kathy,
通常没有人会关心旧的价值是什么。大多数时候旧的
值是非值;它不再存在,所以我们不打算用它来做任何事情。
如果你真的必须有这个可怕的东西。 。子类一个文本框
并自己添加功能。
-Boo
Hello Kathy,
Usually nobody ever cares what the old value was. Most of the time the old
value is a non-value; It doesn''t exist anymore, so we don''t bother doing
anything with it.
If you really must absolutely have this horrid thing.. subclass a textbox
and add the functionality yourself.
-Boo
我会喜欢获取对文本
框进行更改的旧值和新值,以便我可以将它们存储在更改历史记录表中。
最好的方法是什么?我刚刚学习VB 2005;从MS Access移植
应用程序,我可以使用TextBox.OldValue
构造。
TIA,>
Kathy
I would like to get the old and new value for a change made to a text
box so that I can store them in a change history table. What is the
best way to do this? I am just learning VB 2005; porting an
application from MS Access where I could just use the TextBox.OldValue
construct.
TIA,
Kathy
GhostInAK写道:
GhostInAK wrote:
你好凯西,
通常没有人会关心旧的价值。大多数时候旧的
值是非值;它不再存在,所以我们不打算用它来做任何事情。
如果你真的必须有这个可怕的东西。 。子类文本框
并自行添加功能。
-Boo
Hello Kathy,
Usually nobody ever cares what the old value was. Most of the time the old
value is a non-value; It doesn''t exist anymore, so we don''t bother doing
anything with it.
If you really must absolutely have this horrid thing.. subclass a textbox
and add the functionality yourself.
-Boo
在此具有旧价值的应用程序对于审计
目的至关重要。子类化文本框如何帮助获得旧值?
谢谢。
Kathy
In this application having the old value is critical for auditing
purposes. How would subclassing a textbox help get the old value?
Thanks.
Kathy
Hello Kathy,
*思考*确实如此。可能是因为那时你可以添加自己的房产吗?
有点像..哦,我不知道...... .OldValue?嗯......我想我就是这样。
-Boo
Hello Kathy,
*ponders* How indeed. Could it be because then you could add your own property?
Something like.. oh I dunno.. .OldValue? Hmm.. I think mebe so.
-Boo
GhostInAK写道:
GhostInAK wrote:
> Hello Kathy,
通常没有人会关心旧的价值。大多数时候旧的价值是非价值的;它不再存在,所以我们不打算用它做任何事情。
如果你真的必须有这个可怕的东西..子类一个
文本框并自行添加功能。
-Bo
>Hello Kathy,
Usually nobody ever cares what the old value was. Most of the time
the old value is a non-value; It doesn''t exist anymore, so we don''t
bother doing anything with it.
If you really must absolutely have this horrid thing.. subclass a
textbox and add the functionality yourself.
-Boo
在此应用程序中,旧值对审核至关重要
目的。子类化文本框如何帮助获得旧值?
谢谢。
Kathy
In this application having the old value is critical for auditing
purposes. How would subclassing a textbox help get the old value?
Thanks.
Kathy
这篇关于如何为更改的文本框获取旧值和新值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!