Post: [Source] Skype Tool
03-10-2014, 09:17 PM #1
Script
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); Removed for being criticized for basic code.
(adsbygoogle = window.adsbygoogle || []).push({});
03-12-2014, 02:14 AM #2
l3g3ndary
Gym leader
Why don't you make a numeric box to select how many times the user wants to display the message? Or even a slider.

Do something like this

for (int i = 0 ; i <= numeric.Value; i++)

If you only have < it wont reach the value. You looped it 12 times but it will only get to 11. With <= you will get to the intended number.
03-12-2014, 06:22 AM #3
Script
Banned
Originally posted by l3g3ndary View Post
Why don't you make a numeric box to select how many times the user wants to display the message? Or even a slider.

Do something like this

for (int i = 0 ; i <= numeric.Value; i++)

If you only have < it wont reach the value. You looped it 12 times but it will only get to 11. With <= you will get to the intended number.


"However, it's nothing special."
I didn't make this to be an awesome tool, I did it to show people how to do it; but not an in depth tutorial.
I didn't want to put a numeric value due to this not being a big project.
Actually for (int i = 0; i < 12; i++) will loop 12 times, not 11.
03-12-2014, 07:22 AM #4
Pichu
RIP PICHU.
FYI:

You can do this

    
if (!string.IsNullOrWhiteSpace(textBox1.Text) && !string.IsNullOrWhiteSpace(textBox2.Text)
{
//do code here
}


This will check if the value is null for the textbox or if the textbox is just filled with whitespace (spaces).
03-12-2014, 05:49 PM #5
Script
Banned
Originally posted by Pichu View Post
FYI:

You can do this

    
if (!string.IsNullOrWhiteSpace(textBox1.Text) && !string.IsNullOrWhiteSpace(textBox2.Text)
{
//do code here
}


This will check if the value is null for the textbox or if the textbox is just filled with whitespace (spaces).


That's the samething as == "", just more code. Also, I didn't write this to have people tell me how to code it. Winky Winky
03-12-2014, 07:33 PM #6
Pichu
RIP PICHU.
Originally posted by Script View Post
That's the samething as == "", just more code. Also, I didn't write this to have people tell me how to code it. Winky Winky



You wrote:

    

if (textBox1.Text == "" && textBox2.Text == "") return;
else if (textBox1.Text != null && textBox2.Text != null)



My statement was both of those put into one. That's why I posted. It's the same as == but since you were testing for empty and null values, you would have wanted to do what I wrote.

let's put into perspective of what my code equals in accordance to your code:

    
if (textBox1.Text == "" && textBox2.Text == "" && textBox1.Text != null && textBox2.Text != null)


Now look at this:

    
if (!string.IsNullOrWhiteSpace(textBox1.Text) && !string.IsNullOrWhiteSpace(textBox2.Text)


Shorter, far more readable as well. You don't have 4 statements returning 4 different bool value, you only have 2 returned values.
03-13-2014, 05:16 AM #7
Pichu
RIP PICHU.
Originally posted by Script View Post
Removed for being criticized for basic code.


Why remove it? Learn more and improve. That's how it works. ^_^

The following user thanked Pichu for this useful post:

One
03-14-2014, 02:00 AM #8
Originally posted by Script View Post
"However, it's nothing special."
I didn't make this to be an awesome tool, I did it to show people how to do it; but not an in depth tutorial.
I didn't want to put a numeric value due to this not being a big project.
Actually for (int i = 0; i < 12; i++) will loop 12 times, not 11.


Actually wrong again, that will loop 13 times.
03-14-2014, 03:04 AM #9
Originally posted by Script View Post
Removed for being criticized for basic code.


If you can't accept criticism, you shouldn't program anything.

The following 3 users say thank you to Red-EyeX32 for this useful post:

dolby1, Pichu,
03-14-2014, 12:05 PM #10
Default Avatar
Oneup
Guest
Originally posted by Script View Post
That's the samething as == "", just more code. Also, I didn't write this to have people tell me how to code it. Winky Winky


Actually that is not the same. == "" will only check for a blank entry. A whitespace isn't considered empty. You may not have written this to have people tell you how to code but when people are actually giving you good information and correcting you when you are wrong you don't need to be an asshole.

The following user thanked Oneup for this useful post:

Pichu

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo