Home > Archive > MCSD > August 2001 > 70-176





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author 70-176
rocsana

2001-08-23, 10:11 am

Hello dear friends,
I'll have my 70-176 exam soon.

I have one question, maybe you can help.

You want to create a Visual Basic class. You want each instance of the class to represent a record in a database table. How can you accomplish this?
a. Create a new VB project based on the Data Project template. Set the ConnectionSource property of the DataEnvironment object, to refer to the appropiate DSN.
b. Create a class module that queries the desired table in the database. Provide a Property Get method for each field in the table.
c. Run the Visual Data Manager Add-in. Select the correct database and table and use the Copy structure command to generate the wrapper class.
d. Create a new ADO recordset object. When the execute method of the ADO recordset object is invoked, supply the table name as the CommandString argument and adCmdTable as the Option argument.
My answer: b
What's your opinion?
naeem

2001-08-24, 4:17 am

whenever a new instance of the class is invoked it must be initialized the databaes object (connection,recordset etc) too. u can do it in class_initialize() event.
as the question is stressing around each new instance. so all of the possible answers are looking irrrelevant.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net