Home EducationUniversitiesBSc Subscribe to RSS

Can You Give A Detailed Explanation Of The Terms DIM And END As Used In BASIC?

Answer Question

1 Answer - Sort by: Date | Rating

    DIM means DIMENSION
    whenever you used it as

    Dim i as Integer

    you declare the 'i' as an integer type variable.
    Dim used in format:

    DIM  [as ]

    when you omit "as Integer" on the example above, you declare that variable as a VARIANT... meaning it can accept any data type

    Another thing is the scope where you declare a variable using Dim:

    -when you declare it inside any Procedure or Function, that variable can only be used inside that Procedure or Function
    -when you declare it on the "General", it is known in the entire form
    -when you declare it on the "General" of a Module, it is known in the entire Project.

    If you have an MSDN, you can see there the complete details.


    END commands the program to terminate itself.  Whenever the program encounters an End command, it stops and closes the program.

    hope this helps! Ü
    0 0

    Zygrax 

    answered 3 years ago

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International