有一文本框对象text1与公共变量y数据绑定,y当前值为字符串"XYZ",文本框将显示()。
A.text1
B. y
C. "XYZ"
D. XYZ
- · 有6位网友选择 A,占比66.67%
- · 有2位网友选择 D,占比22.22%
- · 有1位网友选择 C,占比11.11%
A.text1
B. y
C. "XYZ"
D. XYZ
当单击“保存”按钮时.将两个文本框中的内容写入一个随机文件Test29.dat中设文本框中的数据已正确地赋值给Person类型的变量p。则能够正确地把数据写入文件的程序段是
A.PARENT.TEXT1.VALUE
B. THIS.TEXT1.VALUE
C. THISFORM.TEXT1.VALUE
D. THIS.THISFORM.TEXT1.VALUE
A.a = Text1.Text
B.a = Text1
C.Text1 = a
D.Text.Text1 = "a"
A、a = Text1.Text
B、a = Text1
C、Text1 = a
D、Text.Text1 = "a"
A.This.ThisForm.Text1.Value
B.This.Parent.Parent.Text1.Value
C.Parent.Parent.Text1.Value
D.This.Parent.Text1.Value
A.ThisForm.Text1.Value
B.This.Parent.Value
C.Parent.Text1.Value
D.This.Parent.Text1.Value
VB界面和代码如下。运行程序,在文本框输入了相关数据,点击“计算”按钮之后,x+y文本框中没有显示运算结果,有可能的原因是()。代码如下:Private Sub Command1_Click() Dim x As Integer, y As Integer x = Val(text1) ‘语句A y = Val(text2) ‘语句B text3.Text = Str(x + y) ‘语句C End Sub
A、“计算”按键的名称属性不是Command1
B、显示x+y结果的文本框的名称属性不是Text3
C、语句A应该写成 x=Val(Text1.Text)
D、语句C中的Str()函数应该换成CStr()
A.This.Thisform.Text1.Value
B.This.Parent.Parent.Text1.Value
C.Parent.Parent.Text1.Value
D.This.Parent.Text1.Value
A)This.ThisForm.Text1.Value
B)This.Parent.Parent.Text1.Value
C)Parent.Parent.Text1.Value
D)This.Parent.Text1.Value
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!