Post: [Tut] - Private Void Boleans
07-22-2011, 12:42 AM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); Hey Whats Up?
today i'm going to be showing you how to Make Private voids with a bool.

-whats a bool?
bool is a argument, this argument is also known as true or false

Example of a bool
    
private void NextGenUpdate(enable bool)
{
switch (true)
{
case True:
MessageBox.Show("My void is true!");
break;
case False:
MessageBox.Show("My void is false!");
break;
}
}


thats the actual void coding, now you would also do something like this in a button or whatever pleases you
    
NextGenUpdate(true);


you see that, now.. if the argument is true it will show the message box "My void is true!"
you see this from this part of the coding here
    
case True:
MessageBox.Show("My void is true!");
break;


same goes for the false but you would put
    
NextGenUpdate(false);


private bools are very useful for settings and calling functions such as if's.
I Hope you found this useful, if experiment as you which.

Next Tutorial : private Boolean!

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo