Added: 2 years ago
From: TeachMeComputer
Views: 84,404
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (127)

Sign In or Sign Up now to post a comment!
  • "Variables are one of the most important parts of programming that you will ever learn" - TeachMeComputer.

    ROGER THAT!

  • how do you add 2 strings together??

  • Hey thanks for making these great videos. I have a question on variables, if i wanted to for example imput a word, and the program would search my word as a definiton on some sort of dictionary website, how would i do that?

  • so what is the differ of integer on string

  • Maybe to make it easy, u can always do something before the name u "dim", like by string u do the s and then uppercase ur name, by integer u use i , arrays , arrs ,....

    Like: Dim sMessagecontent As String = "Variables are cool"

    2nd : Dim iMynumber as Integer = 10

  • Hye ..Is there a way to display two message boxes one with String output like "variables are cool "and the number 10 in another box ?

  • @TeachMeComputer

    so string means text and integer means number input, am i right?

  • @MCneun yes

  • @MCneun Kind of, but Integer means a integer value like 1 or 3

    Dim age As Integer = 35

  • @MCneun Yes, you're right, but that is just in general. Exist near 15 kind of varibles, i am not sure about the real number, but is almost 15. Anyway the diferences, sometimes, are not so big

  • Btw. dont listen to this haters they are probably a 0 at programming i hope what they say does not affect you ! Keep up the good work!

  • nice work ! :D

  • thank u sir .im very much interested in way of teaching.

  • at 2:50

  • Don't mind these youtube trolls. They don't do anything but try to bring people down. Anyway, why was it that when you had 2 messagebox that one became the title?

  • I want to define a variable in a global project. So like, when Inside a Combo-box I have "Fire" I want it to output as "1". So basically, Dim Fire As Integer = 1. But it wont work. I have my Combo Box outputting the command into a text-box, but it keep outputting as Fire not 1. Please help dude!

  • suck a dick u British fag

  • u r gay

  • you

    

  • "Variables Are Cool"

  • thanks this helped me so much!;) i love your accent:P

  • you are cool realy...i love you tnxxxxxxxx

  • it going well but what is Dim means ?

    can i change to another something later or there is one type and its "Dim" please reaply

    Thanks

  • thanks a lot for this!

    

  • thanks mate for the answer regarding dim....

    you are making great tutorials, looking forward to learn php from ur videos !

  • helped me lot to understand thanks for awesome tut.

  • Hey TeachMeComputer what recording software are you using

    to make these vids?

  • @PANOSPATISIA Ironically I was born and live in England. So I'll speak my language however I please.

  • @TeachMeComputer Your accent is awesome. A sight better than the weezy American kids' who post (I'm American, don't call me racist/accentist).

  • @PANOSPATISIA He speaks very fluent English the thing is most of you are used to hearing American accent so you can't make a difference when someone is speaking with an English accent you just think it's weird.

  • @PANOSPATISIA What a dick comment

  • @PANOSPATISIA

    Wow what is wrong with you little twats.... you come here to learn vb.net(You would not be here if this would not be true) and you hate on the video? Wow... who cares how he speaks, everyone understands him clearly.

  • @PANOSPATISIA You son of a bitchh!!! Go fuck yourself...his accent is original!!

  • @PANOSPATISIA The only Albanian guy here is you. Majku ti jebem siptarsku

  • i think Dim means Dimension......!

  • @Akiii001 Dim means Declare In Memory, or that is how I was taught it.

  • @TeachMeComputer What you need to do next is give little projects for people to do and tutorials through them if they get stuck. That'd be ideal for someone like myself. Great job btw.

  • SCOUSAAA ! love the accent :P

    although i always picture the skit by Harry Enfield .

    watch?v=W7VspOs3Qt0 < you will see haha

  • Nice tutorial. :) Can you tell me what's the point of using a variable though? I know you used the Dim messagebox as string = "something" and messagebox.show (messagebox) to show us another way of inserting text into the pop-up box.. but what's the point when you can just use messagebox.show ("something") ?

  • @FarahCalderone he shows u how to declare so u can use it later and dont find it on your way

  • @FarahCalderone The message box, or whatever, could come up many times, and if it is a long sentence, you could just use your variable.

    It's like taking the lazy way out.

  • Thank you Very much for best VB.NET tutorials.

    Waiting for more advance tutorials.

    Thank You once again!

  • What is a String ???? Sorry Im a beginner...

  • @143RJC line of text

  • @143RJC

    Not sure this has been answered but a string is like an integer but made up of words.

    So think of it as a sentence.

    Integer sentence = 1 + 1 = 2

    String sentence = Hi, my name is Jesus

  • i am learning know but at the point i am really liking this tuturials .

  • Comment removed

  • you can also put "As Int" if you are super lazy and cant type "As integer"

  • Wow with this you can make quizzes and games!!!!!

  • 'Dim' means Dimensions, not 'Declare'.

  • 1:08 "Anythink" lol

  • hirap ng gumawa ng db para dyan!

  • This is a fantastic tutorial, and its really easy to follow. Thanks!

  • u could just do a msgbox. but i know the point of this vid is variables.

  • Thank-you very much for helping me further develop my knowledge of this programming language!

  • very good video :) keep them coming

  • your pronunciation is a little weird, the volume of your micro is going up and down, but your tutorials are really good ;D

  • thanks for help man

  • You can use "Msgbox" for short

  • Like!!!!

    

  • How can we make a new variable by clicking a button?

  • Ur a legend. Fact.

  • Dim means dimension, not declare. However, I suppose saying it means 'declare' is less confusing to those that aren't familiar.

  • Check out this Tutorial about Variables: youtube.com/watch?v=Ka8uSYxWmY­Q

  • @masterweb000 what, a link to youtube. very funny!

  • very very helpful....thanks a lot

  • it's really helpful for us.thanks...... : ).

  • You do need to use quotations when using variables, because I did as you told me and it gave me an error - but when I did use quotations it worked just fine.

  • @WormagStudios no..You cannot use quation for variables. Quatations are used for strings but never used for any type of variables.

  • nice this is our subject .. =D thanks ... for doing tutorials =D

  • rock on no 3 done

  • nice video i learn a lot ,,now i don't need tutor..thnx

  • how can i put a program on the internet so my friends can download it?

  • @thatwaslawlin Upload it to say... Filefront, megaupload, sites like that.

  • @thatwaslawlin Go into your project folder > bin > debug > zip the executable and host it on the internet

  • how can i put a program on the internet so my friends can download it?

  • @thatwaslawlin Go to debug then build and then save all. Go to my documents then visual studio 2010, projects, whateva u saved it, bin release and then attach the application file. Or look at the download and run program tutorial to see how to make a program that will download it

  • Thanks for the tutorial !

  • so I want to play a prank on my sister saying your computer is bugged, then it will say windows is now shutting down, ive gotten the message parts but how do I actually make the computer shut down when you hit ok

  • @mrcreamyful You have to use command prompt or CMD for short. To use this you would have to use sendkeys as an output for the program. Sendkeys basically outputs your inputs into the program out to the computer to correspond with your instructions. For instance you would have to start command prompt like this.

    shell("cmd.exe") ' this will start Command Prompt or CMD for short

    sendkeys.send("shutdown -s -t 10 -c "VIRUS! Shut down in progress!") ' this outputs info to cmd to shutdown the comp.

  • i like your accent

  • Very nice tutorial,

    hwo to i define "Inject"?

  • Very nice tutorial

  • These are great vids I plan to watch them all, Im about to start vb.net in my course work and also my employer is considering me for a JR analyst position which will handle alot of vb.net ado.net and share point stuff. Good Job kid.

  • Sorry, but I seemed to have learned more about message boxes than variables in this video. Still liked though.

  • I'm sorry, but i this video, I seemed to have learned more about message boxes than I did about variables.

  • Awsome tutorial

  • thank you. i never understanded Dim. now i do :)

  • hello

    i need help ,, i saved just a few numbers in a form of column in text.txt (as a vector)

    and then i wanted to know how components does this vector contains(i mean,how many numbers i ve written in that vector) , i would like to do this throw : 1stly reading this vector() throw new io.streamreader within a (for...next)loop,can u please tell me how to do this?? thanx

  • why string ?

  • awesome dude ! .. i guess ill finish all tutorials today and keep my questions till the end !

  • Really Weird, Your using basic, im using Microsoft Visual C# 2008 Express Edition and myne has brackets, unlike your edition so its hard to understand, and theres more errors in myne when i follow your guide, because of this, just a heads up for future tutorials.

  • This one is just like toturial 2 but this one show a shortcuts???

    Y dont understand that 100% but anyway toturial is PRO.

  • on VB 6 i used to declare variables on GENERAL so they could be use everywhere, how do it on vb 2010?

  • I need help! i know already how to make var so a new Msgbox/inputbox appers with a diffrent text depending on what var i typed but what i need help with is idk how to make a varible that means end (closes the program) so that if you type the other var it will keep on going and loop where i said it to loop with i know is just to do the loop state but then how to make an End var?! please help i really need an answer quick!

  • Can you create a video for Public Variables and their use in other forms???????????

  • Thanks man...I learned so much...need to self study about vb.net

  • I think most coders call those double quotes.

  • Thank you :D :D :D:D

  • thanks so much

  • thanks :)

  • Are you able to change variables' value? If so how? That would be an excellent tutorial.

  • thanks / dzoks1 HF

  • can u tell me the equivalent of "or" in visual basics

  • lol funny accent

    especially when u say "variables"

  • Speak louder!

  • how can i create a variable which is = to that i type on my keyboard?

  • Thanks man!!

  • nice vid tyvm

  • Nice TUTS

    I have question

    what screen recorder do you use ?

  • 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

  • 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

  • great. 5 stars! subscribed. :)

  • 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?

  • 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.ToStr­ing())

  • @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.

  • @RevitalMalkan Very true. The code will be ripped apart and won't be recommended by professionals if it isn't safe, even if it is for demonstration purposes. It's almost always a good idea to convert to string. Thanks for the reminder.

  • @RevitalMalkan Thanks.

  • MessageBox.Show ("OMG THE VIDEO ARE AWSOME")

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more