Visual Basic 6 Interview Questions and Answers
Question - 61 : - What is diff between the Generic Variable and Specific Variable?
Answer - 61 : - Generic Variable:
Create Object Ex:-Ole-Automation . No need refer the object library.
Specific Variable:
Binding Procedure Early and Late Binding ( Can be Remove from the Memory).
Question - 62 : - What is the diff. Between function and sub procedures?
Answer - 62 : - Function will return value but a sub procedure wont return values
Question - 63 : - What is the max size allowed for Extension in Visual Basic?
Answer - 63 : - Frm, bas, cls, res, vbx, ocx, frx, vbp, exe
Question - 64 : - What is FireHouse Cursors?
Answer - 64 : - Forward Only Some time Updateable
Question - 65 : - With in the form we want to check all the text box control are typed or not? How?
Answer - 65 : - For each currentcontrol in controls
if typeof currentcontrol is TextBox then
end if
next
Question - 66 : - What are the type of validation available in VB?
Answer - 66 : - Field, Form
Question - 67 : - How to trap Data Base Error?
Answer - 67 : - Dim x as RDOError
X(0).Des
X(1).Number
Setting the Cursors.
Default Cursor 0
ODBC Cursor (Client side) 1
ServerSide Cursors (More Network traffic) - 2
Question - 68 : - How to declare Dll Procedure?
Answer - 68 : - Declare function "" lib ""
Alias "" (Arg, ..) as Return type.
Question - 69 : - Referential Integrity (Take care By jet database Engine). Cascade Delete, Cascade Update is done setting property of Attributes.?
Answer - 69 : - DbRelationDeleteCascade, DbRelationUpdateCascade.
Question - 70 : - How to increase the Date corresponding with month,date,year?
Answer - 70 : - DateSerial(year(Now),Month(Now)+1,1)
Hour, min, sec, month, year, DateSerial, dateadd, datediff, weekday, datevalue, timeserial,timevalue.