Page 282 - Open Soource Technologies 304.indd
P. 282
Event Driven Programming
2. How can you place a DataGrid on a form that is automatically bound to the Recordset
of a Data Environment’s Command object? (Select all that apply.)
(a) Drag the Command object with the right mouse button from the Data Environment
to the form.
(b) Drag the Command object with the left mouse button from the Data Environment
to the form.
(c) Highlight the Command object with the mouse and then right-click the form.
(d) Highlight the Command object with the mouse and then left-click the form.
3. The ADO Data Control’s RecordSource property
(a) Exposes a Recordset
(b) Contains the settings for creating a Recordset
(c) Exposes a Fields collection
(d) Exposes a Command object
4. A VB control’s DataMember property refers to
(a) A Recordset object (b) A Connection object.
(c) A Command object (d) A Data Environment
5. Setting the adStatus parameter of an ADO Connection object’s WillConnect event procedure
to a value of adStatusUnwantedEvent
(a) Causes the compiler to ignore this event procedure.
(b) Causes the event procedure to immediately terminate.
(c) Causes a runtime error if there is no error handler written in the event procedure.
(d) Causes the event procedure to run only once during the application session.
12.8 Review Questions
1. Which property of a Recordset object should you check to see if the preceding call to the
find method was successful?
2. Write down three main differences between flexgrid control and dbgrid control.
3. Difference between Recordset and Resultsets.
4. What is the advantages of disconnected recordsets?
5. How many data-bound controls are found in ADO data control?
6. What is the use of data environment and the ADO control in VB controls?
Answers for Self Assessment Questions
1. (d) 2. (a) 3. (b) 4. (c) 5. (d)
276 LOVELY PROFESSIONAL UNIVERSITY