VB.NET Programming. Intermediate Lesson 5. Write your own Functions

preview_player
Показать описание
This is the fifth in a series of computer science video tutorials for intermediate Visual Basic programmers who have completed the beginner’s series of video tutorials or are already familiar with the VB.NET syntax for the fundamental programming constructs. In this lesson you will learn how to write your own functions and how to call them. You will learn how to write a function definition including its input parameters, their data types, and the data type of the function’s return value. The lesson includes a number of examples of custom functions that you can try yourself.
Chapters:
00:00 Introduction
00:28 Rewrite a sub-procedure as a function
02:18 The function return value
02:52 Calling your own function
04:51 The return value data type
05:20 Example function – return the area of a triangle
06:42 Example function – temperature checker
Рекомендации по теме
Комментарии
Автор

I'm glad I'm late to the party, , because I don't have wait for the next vid to drop. Took more notes, you made Functions functional and functionally easy to understand. Thanks so much....JT

jtlunsford
Автор

Thanks for your great videos. I would like to request you for the complete tutorial for creating complete database application with DAL and BLL in modern way of programming in vb.net.
Thanks 👍

ksmemon
Автор

Why is anybosy disliking this, he is doing good i am understanding everything

devil_beast
Автор

If you need a function to return more than one result, you can pass variables by reference. The values are changed in the function and the calling function can then work with the results returned.

kevnar
Автор

Aaaah ... nice specifying the return type ... I'm gonna stop here for now. I haven't messed with VB in over 10 years. Getting back to Python now!

Автор

Thank for great videos. Could you make a video for using keyboard keys to activate buttons

aslahh
Автор

KD—I love your videos. I see your channel is Computer Science but is there a way to only see your videos ?

TheScurlocker
Автор

please make a video about interfaces in vb.net

zeoloty
Автор

Instead of Return dblResult, could you write Return (Base*height)/2 or alternatively TriangleArea = (Base*height)/2, reducing lines of code? As always, thank you for your time.

anthonynorton
Автор

Amazing tutorials😀😀, is it fine you make a tutorial of C++?
I have looked for good reliable tutorials on C++ however none of them are reliable.
If it is not possible now, maybe a few months later?
Thank you.

thezudron
Автор

I wonder if the return keyword can be omitted. If I have the function "MyFunction(a As integer) As Integer" can I not define the return clause as: "MyFunction=2*a" At least this is OK in VBA...

WMAlbers
Автор

Hi. 1:40 what if first input attribute of function will be "9, 57" instead "9.57"? What is .NEt function to control such inputs? Thank you

kabukijoe
Автор

That is so weird. Brings back memories of Turbo Pascal. Yes a procedure did NOT return a value but a function did. Why make that difference. Every other programming languages make no differential between those. LOL