Skip to content

Ozar.net Developer Blog

Programming in PHP, C, C#, ASP.NET, Java, Objective-C, SQL also for MS SQL Server, Oracle & MySQL Development

Menu
  • Home
  • About
  • Tutorials
  • Contact
  • Privacy
Menu

Visual Basic 2008 / Visual Basic .NET Tutorial #3 – Variables

Posted on April 4, 2010April 4, 2010 by OD


This tutorial will help you understand what a Variable is, how to create a variable and how they could be used. I have explained it in depth for the new programmers that have never used a variable before. Variables are one of the most important parts of programming that you will ever learn, so remember the syntax! Key Terms: ————— Variables Dim As Integer String Value

9 thoughts on “Visual Basic 2008 / Visual Basic .NET Tutorial #3 – Variables”

  1. RSMVnoobz says:
    April 4, 2010 at 12:23 PM

    nice vid tyvm

    Log in to Reply
  2. saski92 says:
    April 4, 2010 at 12:50 PM

    Nice TUTS
    I have question
    what screen recorder do you use ?

    Log in to Reply
  3. 126644 says:
    April 4, 2010 at 1:20 PM

    be used anywhere within the form public means the variable can be used anywhere within the project while private means it can only be used on the form in which it was declared dim means the variables private while public shared means the variables public

    Log in to Reply
  4. 126644 says:
    April 4, 2010 at 2:15 PM

    when you declare a variable you decide whether is public or private, local or global, you give it a name and you decide on its data type for example
    dim hello as string = “hello”
    makes the variable private gives it the name hello and gives it the data type string meaning your working with words and depending on where you place the variable tells the compiler whether its local or global local means it can only be used in the same event/sub/function it was declared in and global means it can

    Log in to Reply
  5. 0lsi says:
    April 4, 2010 at 2:37 PM

    great. 5 stars!
    subscribed. 🙂

    Log in to Reply
  6. evigtelektrisk says:
    April 4, 2010 at 2:52 PM

    Nice tutorial.
    Concerning variables, could you also write like:

    Dim hello As String
    ————————–

    hello = “Hello”
    then put like, MessageBox.Show(hello)

    Or must we give the variable a value as we declare them?

    Log in to Reply
  7. TeachMeComputer says:
    April 4, 2010 at 3:32 PM

    @RevitalMalkan
    That’s a little much to stomach on the first real tutorial. I’m going to be creating a further informational video on variables and why you would use an integer instead of a string.

    Log in to Reply
  8. RevitalMalkan says:
    April 4, 2010 at 3:56 PM

    When displaying integers you should convert them to a string first (turn on options strict)

    so you should do it like so:
    MessageBox.Show(MyIntVar.ToString())

    Log in to Reply
  9. JeckSulie says:
    April 4, 2010 at 4:36 PM

    MessageBox.Show (“OMG THE VIDEO ARE AWSOME”)

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • NSTableView with Core Data Tutorial using NSFetchedResultsController
  • CodeIgniter Wizard – a new PHP CRUD Code Generator for macOS
  • Installing Oracle Database 10g Express Edition and Changing the Default HTTP Port
  • Xcode Tutorial 2 – Putting iAd into your App (The Apple Approved Way)
  • Cocoa Programming: A Quick-Start Guide for Developers

Blogroll

  • All Systems GO
  • GOZmosis
  • Maclord's Blog
  • Ozar.net

Tags

.NET 2008 application ASP.NET basic Beginning best books business Business Objects C# Database Databases Development Edition Guide iPhone Java Java EE learn Learning Microsoft MS SQL Server MySQL Objective-C Programming objects Oracle Part PHP PL/SQL Professional Programming Server Software SQL T-SQL TSQL Tutorial Tutorials Using Video Visual Visual Basic .NET Web Programming Tutorials XCode
© 2026 Ozar.net Developer Blog | Powered by Minimalist Blog WordPress Theme

Powered by
►
Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
None
►
Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
None
►
Analytical cookies track visitor interactions, providing insights on metrics like visitor count, bounce rate, and traffic sources.
None
►
Advertisement cookies deliver personalized ads based on your previous visits and analyze the effectiveness of ad campaigns.
None
►
Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
None
Powered by