VB.Net

VB.Net Statements

VB.Net Statements

In the Visual Basic program, a statement is a complete set of instructions. Keywords, operators, variables, literal values, constants, and expressions are all possible.

Statements could be classified as

  • Declaration statements are the statements in which you name a variable, constant, or function and indicate its data type.
  • Executable statements are the statements that start activities. These statements can be used to invoke a method or function, to loop or branch over code blocks, or to give values or expressions to variables or constants. In the latter situation, it is referred to as an Assignment statement.

Statements of Declaration

Procedures, properties, variables, arrays, and constants are named and defined using the declaration statements. When you declare it, you can specify the data type, access level, and scope of a programming element.

Variables, constants, classes, enumerations, structures, interfaces, modules, procedures, procedure parameters, external procedure references, function returns, properties, operators, events, and delegates are all programming elements that can be declared.

Following are the declaration statements in VB.Net −

Top course recommendations for you

    Python Basic Programs
    2 hrs
    Beginner
    42.1K+ Learners
    4.47  (2203)
    Ecommerce Website with HTML & CSS
    3 hrs
    Intermediate
    25.9K+ Learners
    4.55  (1035)
    Oracle SQL
    4 hrs
    Beginner
    39.8K+ Learners
    4.55  (2480)
    Java Basic Programs
    2 hrs
    Beginner
    34.9K+ Learners
    4.45  (1105)
    Excel Tips and Tricks
    1 hrs
    Beginner
    70.8K+ Learners
    4.55  (5117)
    Factorial Program in Python
    1 hrs
    Beginner
    3.1K+ Learners
    4.56  (97)
    Palindrome Program in C
    1 hrs
    Beginner
    3.3K+ Learners
    4.44  (144)
    PHP for Beginners
    2 hrs
    Beginner
    45.4K+ Learners
    4.52  (3348)
    Inferential Statistics
    1 hrs
    Beginner
    4.1K+ Learners
    4.54  (201)
    Catia Basics
    2 hrs
    Beginner
    18.1K+ Learners
    4.52  (1440)