KSOU - Assignments
website hacked gandu

IGNOU-BCA 4th Semester
header strip
******Sarkari Naukri News - Up to date Government Jobs Listing******
4/7/2010 10:51:54 AM

icon Solved Assignment 4Th Sem
  Design a database application to generate Cinema Hall Transactions using Visual Basic. Provide necessary documentation, reports, screen layouts etc. for the project.

4/19/2010 2:58:29 AM

icon Re: Solved Assignment 4Th Sem
  Contact Email: samudrananyasi(@)gmail(.)com

Remove the () from the email address

5/2/2010 9:28:01 AM

icon Re: Solved Assignment 4Th Sem
  What are different the built-in functions and their use in Visual Basic. Also, discuss the need of Module level variables with example.
(5 Marks)
Name Return Type Description
CBool Boolean Converts an expression into a Boolean value
CByte Byte Converts an expression into Byte number
CDate Date Converts and expression into a date or time value
CDbl Double Converts an expression into a flowing-point (decimal) number
CInt Integer Converts an expression into an integer (natural) number
CCur Currency Converts an expression into a currency (monetary) value
CLng Long Converts an expression into a long integer (a large natural) number
CSng Single Converts an expression into a flowing-point (decimal) number
CStr String Converts an expression into a string
A variable that is recognized among all of the procedures on a module sheet is called a "module-level" variable. A module-level variable is available to all of the procedures in that module, but it is not available to procedures in other modules. A module-level variable remains in existence while Visual Basic is running until the module in which it is declared is edited. Module-level variables can be declared with a Dim or Private statement at the top of the module above the first procedure definition.

At the module level, there is no difference between Dim and Private. Note that module-level variables cannot be declared within a procedure.

Note If you use Private instead of Dim for module-level variables, your code may be easier to read (that is, if you use Dim for local variables only, and Private for module-level variables, the scope of a particular variable will be more clear).

In the following example, two variables, A and B, are declared at the module level. These two variables are available to any of the procedures on the module sheet. The third variable, C, which is declared in the Example3 macro, is a local variable and is only available to that procedure.

Note that in Example4, when the macro tries to use the variable C, the message box is empty. The message box is empty because C is a local variable and is not available to Example4, whereas variables A and B are.
Dim A As Integer ' Module-level variable.
Private B As Integer ' Module-level variable.

Sub Example1()
A = 100
B = A + 1
End Sub

Sub Example2()
MsgBox "The value of A is " & A
MsgBox "The value of B is " & B
End Sub

Sub Example3()
Dim C As Integer ' Local variable.
C = A + B
MsgBox "The value of C is " & C
End Sub

Sub Example4()
MsgBox A
' The message box displays the value of A.
MsgBox B
' The message box displays the value of B.
MsgBox C
' The message box displays nothing because C was a local variable.
End Sub

Reference Websites
Home | Contact Us |
-> QuestionPaper.in   -> ColoradoDesi.com   -> QuestionPaper.net
Disclaimer: For documents and information available on ignou-bca.solvedassignments.in, we do not warrant or assume any legal liability or responsibility for the accuracy, completeness, or usefulness of any information. Assignments, Papers, Results, Syllabus, Logo and other educational contents are posted by website users and ignou-bca.solvedassignments.in does not hold any copyright on it. The format of materials, being displayed on this website, comes under the copyright act. ignou-bca.solvedassignments.in, All Rights Reserved ©
Download question papers for exams