假设一个表单里有一个文本框Text1和一个命令按钮组CommandGroup1,命令按钮组中包含Command1和Command2;两个命令按钮。如果要在Command1命令按钮的某个方法中访问文本框的Value属性值,下列式子中,正确的是( )。
A. ThisForm.Text1.Value
B. ThisForm.Parent.Value
C. Parent.Text1.Value
D. This.Parent.Text1.Value
参考答案:A
解析:在Visual FoxPro中,Parent所指的是当前对象的直接容器对象,当前对象的关键字是This,当前对象所在的表单的关键字为ThisForm。