问题 单项选择题

假设一个表单里有一个文本框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。

单项选择题
单项选择题

Like all the huge metropolises of the world, there are lots of diversions both outdoors and indoors in Chicago. The Art Institute of Chicago has one of the world’s (1) art collections, including more French Impressionist paintings than even in the Paris Louvre itself. The Field Museum of Natural History and the Museum of Science and Industry are also great historical and cultural treasure houses to (2) as well as entertain children and adults (3) In the Field Museum one comes (4) a surprisingly big collection of Chinese exhibits from the ancient (5) to the early century. The Sears Tower and the Buckingham Fountain are the pride of the Chicagoans; (6) having 110 storeys is said to be the highest tower in the world and the (7) is the largest fountain in the United States. Lake Michigan is for yachting in summer time, (8) the highlights of Chicago life all the year round are concerts, operas and plays (9) by the city’s orchestra, opera houses and theatres. In summer, especially around the Independence Day, July 4th, many festivals and fairs are given outdoors, which, (10) crowds and crowds of people, with their parades, fireworks, (11) concerts, water-skiing and good foods.

But with all its attractions and beautiful spots Chicago is also a city (12) for crimes. All the dwelling houses are (13) with three doors and visitors have to speak through microphone (14) in the wall to the residents before they can get admitted. In the streets there are white-color telephones. When one finds oneself (15) , he needs only to knock the receiver (16) the hook and the next instant the police will (17) . If one does not drive a car, it may well be dangerous for him or her to go out alone in the evening. At first I did not take this warning seriously. (18) , my two encounters with the Black people (19) dusk in the neighborhood were so unpleasant and frightening that I have (20) shut myself evenings in my room, in almost all studying, imposing a curfew on myself.

11()

A.outsides

B.outdoor

C.without

D.within