VB.NET Programming. Intermediate Lesson 4. Built in Functions

  Рет қаралды 20,686

Computer Science Lessons

Computer Science Lessons

Күн бұрын

Пікірлер
@MrXenon-hn7ju
@MrXenon-hn7ju 3 жыл бұрын
I came from you flip-flop series videos just to say thank you for your work. It is very much appreciated, even your work from 4-6 years ago. My professor is an idiot, he doesn't understand that learning requires time and thoroughness. He uses "independent learning" as a way to avoid teaching certain topics. Thank you for patching the holes in my education, free of charge.
@jtlunsford780
@jtlunsford780 Жыл бұрын
Very powerful learning experience with your vids. Lot's of notes again. Amazes me how you can next built in Functions. Time to make a sandwich and get to # 5....Thanks so much....JT
@suvigyabasnotra7378
@suvigyabasnotra7378 3 жыл бұрын
Can you start working back on your Python Programming Playlist too...? Your work is commendable...!
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
I will indeed :)KD
@kcvinu
@kcvinu 3 жыл бұрын
Thanks. Great tutorial. But I can see that you dragged the form plenty of times to show the code and form at the same time. You can either set the form's start position property to center of the screen or programmatically set the position wherever you want. If an expression returns a boolean value, you don't need to use "= Flase" or "=True" after an If statement. Just use "If IsNumeric(blablah) Then DothisJob". That's all.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Thank you. I'm planning on doing a video about forms and form controls soon. I plan to cover repositioning and resizing in that video. Thanks for reminding me about the default start position property, I will mention that too. When I'm coding for myself, I would write something like 'If bFlag Then', or 'If Not bFlag Then' but when I'm teaching new students I encourage them to write 'If bFlag = True Then' or 'If bFlag = False Then'. I tend to be explicit about true and false to begin with. I also think it helps to reinforce the concept that a function like IsNumeric returns a boolean value. You've given me an idea though, I might do a video on coding shortcuts later. :)KD
@kevinerose
@kevinerose 3 жыл бұрын
Perfect! I was just working on some code using the Rnd() function and had some trouble. This helped me out as I didn't know about the Math tagline. I was trying random from 1 to 6 but using CInt() I was getting values 1 thru 7. A question, I know you didn't mention it here but should Randomize() be used prior to each instance of Rnd(), once at the form level or would it work placing it at the global level?
@None17555
@None17555 3 жыл бұрын
Randomize pulls a new seed, so you only need to use it once. It helps ensure the "randomness" by pulling a value from the CPU's clock at the time you Randomize. However, it's not strictly necessary.
@anthonynorton666
@anthonynorton666 3 жыл бұрын
In the assignment statement i = CInt(Math.Ceiling(Rnd() *6)), why are you using Cint () to make sure the expression evaluates to an integer in (1...6) when the expression Math.Ceiling(Rnd() *6) evaluates to an integer in (1...6), "...Visual Basic Rnd() function, that returns a floating-point value between 0.0 and 1.0." I spent some time trying to figure this out.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
You're quite correct. wrapping it all up in CInt is overkill. I stand corrected :)KD
@anthonynorton666
@anthonynorton666 3 жыл бұрын
@@ComputerScienceLessons Thanks for the reply. I just wanted to make sure I didn't miss some important peculiarity in one of those functions that would have consequences in my coding.
@shimaekram8605
@shimaekram8605 3 жыл бұрын
Love it! Also it would be so nice if you could make videos on 'Software Development' & 'Artificial Intelligence' CIE AS Level 9618
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Hi Shima. Thanks for commenting. Machine learning/AI is something I am working on (albeit slowly). In the meantime, the AI section of your course requires an understanding of A* and Dijkstra's pathfinding algorithms which I have made some videos about. Take your time with these, these are quite complex; you need not concern yourself with the program code for these, just the algorithms. :)KD
@alifuattulumcu4071
@alifuattulumcu4071 3 жыл бұрын
Thank you
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
You're welcome :)KD
@wozzles9364
@wozzles9364 Жыл бұрын
kevin have my kids
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
What can I say! 😳
@kabukijoe99
@kabukijoe99 2 жыл бұрын
hi. Can you help me to understand how to use NumberFormatInfo to replace "." with "," tha is in a variable? Fo example Dim a As String : a = "25.3" Dim b As Decimal b = CDec(a) MsgBox(b) I'll get a mistake. Because the separator of my system is "," Thank you
VB.NET Programming. Intermediate Lesson 5. Write your own Functions
8:34
Computer Science Lessons
Рет қаралды 16 М.
Intermediate VB.NET Programming Lesson 7. More about StreamReader and StreamWriter
20:44
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Russian secret base uncovered / Russia abandons the region
14:15
NEXTA Live
Рет қаралды 641 М.
Advanced VB.NET Programming - Delegates
18:59
Computer Science Lessons
Рет қаралды 9 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 194 М.
Visual Basic Subroutines and Functions
12:14
Dan McElroy
Рет қаралды 5 М.
I Helped 2,000 People Walk Again
15:31
MrBeast
Рет қаралды 27 МЛН
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 346 М.
Сборник Эксклюзивов 2024 - Уральские Пельмени
1:33:24
Уральские Пельмени
Рет қаралды 1,4 МЛН
Intermediate VB.NET Programming Lesson 9. Exception Handling
14:30
Computer Science Lessons
Рет қаралды 12 М.
Controls | Toolbox Controls | Introduction, Properties, Methods | VB.Net
16:47
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН