以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  Textbox  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=195611)

--  作者:fangshen
--  发布时间:2025/2/21 11:07:00
--  Textbox
各位大侠:我现在想实现

在窗口A中,有Textbox1和Textbox2,button1
Textbox2=0时,点击button1后,把Textbox1的值复制到Textbox2,
   Textbox2不是0时,按钮无效

   谢谢

--  作者:y2287958
--  发布时间:2025/2/21 11:11:00
--  
If e.Form.Controls("TextBox2").Value = "0" Then
    e.Form.Controls("TextBox2").Value = e.Form.Controls("TextBox1").Value
End If 

--  作者:fangshen
--  发布时间:2025/2/25 9:13:00
--  
谢谢
解决了

--  作者:fangshen
--  发布时间:2025/4/1 16:07:00
--  

在窗口A中,有Textbox1Textbox2button1,CheckBox1

CheckBox1没有审批,点击button1后,把Textbox1的值复制到Textbox2

   CheckBox1已经审批,按钮无效

请问,下面的代码如何修改?谢谢

 

If e.Form.Controls("TextBox2").Value = "0" Then

    e.Form.Controls("TextBox2").Value = e.Form.Controls("TextBox1").Value

End If 


--  作者:有点蓝
--  发布时间:2025/4/1 16:22:00
--  

If e.Form.Controls("
CheckBox1").Checked Then

    e.Form.Controls("TextBox2").Value = e.Form.Controls("TextBox1").Value

End If 

[此贴子已经被作者于2025/4/1 16:22:41编辑过]