问题 填空题

有如下用户定义类型及操作语句:
Type Student
Sno As String
Sname As String
Sage As Integer
End Type
Dim Stru AS Student
With Stu
.SNO="200609001"
.Shame="陈果果"
.Abe=19
End With
执行MsgBox Stu.Age后,消息框的输出结果是______。

答案

参考答案:S

解析: 在VBA中,要想引用记录变量中的成员必须使用“.”运算符,其格式为:变量名.成员名。在With和End with之间,引用时可以直接使用“.成员名”而不写变量名。

多项选择题
单项选择题