[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –

Visual Basic Tutorial – 43 – Functions
by
Tags:
Comments
30 responses to “Visual Basic Tutorial – 43 – Functions”
-
Played with example. Tried to change button text after msgbox button clicked. Does not work.
-
omg finally hell will be finished…. thank you for your video
-
Excelent tutorial, learned functions in 5 mins!!! pretty good explanation
-
thanks 🙂
-
I understand that a function has a return statement and was built to return a value. But I can use the following…
answer = MySub(arg) + 1
I have returned a value from a Sub and added one.
Will Subs and Functions not do the same? -
What if my function will be taking a while how can i abort a function in a button sub?
-
5 years late but I have never had functions explained so clearly before… hallelujah.
-
I still don't know what I'm doing, does anyone have YIM, I can chat with, so they can help me?
-
Learning a lot from you. There just aren't that many slow tutorials for this stuff. Thanks.
-
For those who divide numbers and the answer is in a recurring decimal (e.g. 10/3 and the answer is 3.333333333) you can use what you've learned earlier (Tutorial 21 – Formatting Strings) which will result in the answer being in two (or how much you specify) decimal places.
To do this: in the button procedure simply write:
MessageBox.Show(String.Format("{0:n2}", solveMath))
That's the only line of coding you need in the button procedure.
-
hehe
-
just wanna ask, what happens if you put the coding in the private sub 'solve math' into the btn runfunction? wouldnt it still work the same?
-
I strongly recommend NOT skipping to Windows Form Applications Videos since in the console videos, you can learn helpful fundamentals of this Coding Language. Such as what the Primitive Data Types are, or If Elseif and else, Select Case statements, etc.
-
this is like learning chinese for me
-
you noob fucker
-
Why is it that my Forms1 (Editor) create two private Sub areas? They don't come out looking like yours Sam? Is there a setting I have on or off? It makes things a bit confusing when following along….
-
Its like a float. An integer is: 1 a Double is: 1.23232323
-
Haven't you even watched the previous tutorials? -_-
-
Thanks!
-
Thanks, good stuff as usual 🙂
-
I believed it's pronounced boo-lee-uhn.. not boo-leen.
-
ONE MORE QUESTION! PLEASE Reply Sam 🙂
What's the difference between a Sub and a function
But you said a Sub doesn't return values like a functionBut isn't calling a sub(which calculates something) to another sub like returning values aka passing on a sub to a sub like a function to a sub?
LIKE this question if you AGREE and if you're thinking about this!
-
your
-
cant you just do
return num1 / num2 as double = answerthat would work right?
-
Is there any command in VB 2008 to on or off that supporting texts shown while typing….like supporting text as in msg box shown in this video??
-
how do you make a function that is asynchronous? Im doing a function that freezes the application until the function is done. So i want it to be done async.
-
This is good stuff.
-
Sam, i can't find a tutorial about rnd function! It would be tasty if you had one =P
-
Damn… seriously i sat 2 months in class and didn't understand VB.Net functions…. sat watching this video for 5:27 and understand functions…. another drop out coming you're way Bill Gates 🙂
-
thank you
Leave a Reply