Gender: : Female
City : BangaloreSend Friend Request
Computer Science Visual Basic Technical Questions
Preview of the attached file
1. What's the difference between MODAL and MODELESS forms?
MODAL forms are forms which require user input before any other actions can be taken place. In other words, a modal form has exclusive focus in that application until it is dismissed. When showing a modal form, the controls outside this modal form will not take user interaction until the form is closed. The internal MsgBox and InputBox forms are examples of modal forms. To show a form modally, use the syntax:
MyForm.SHOW 1 MODELESS forms are those which are shown but do not require immediate user input. MDI
child forms are always modeless. To show a form modeless, use the syntax: MyForm.SHOW
2. When/Why should I use Option Explicit?
Option Explicit forces you to declare all variables before using them. Opinions vary greatly on this subject. The main reason to use the OPTION EXPLICIT statement at the top of all modules is to minimize the amount of bugs introduced into your code by misspelling a variable name. Most variants of BASIC (including VB) have the capability to create variables 'on the fly'
(without any declarations). This capability can be a double edged sword. At the minimum, some suggest using the DEFINT A-Z statement in leu of OPTION
EXPLICIT. This statement will cause any variables which are created on the fly to be created as integers as opposed to variant (VB 3.0) or single precision (VB 1.0 and 2.0). (Integers take up less memory).
Please download the attached file to view rest of the content.Similar Threads:
- Computer programming concepts and visual basic ebook free download pdf
- Computer Science UNIX Technical Questions PDF Download
- Computer Science TCS JAVA Technical Interview Questions PDF Download
- Computer Science Oracle Technical Questions PDF Download
- Computer Science Technical Questions And Answers PDF Download