Solvedloop trough all checkboxes then return true or false

Posts 1–3 of 3 · Page 1 of 1
loop trough all checkboxes then return true or false
I'm trying to check 2 functions in an if condition.

like this

if (checkTextboxes(sender) && checkRadiobuttons(sender))
{
//here comes the code if true
}
My problem is when i have 1 of the 3 texboxes filled in the condition is True but i want to check all the textboxes first before i get a return, i just can't figure it out..
checkTextboxes(sender)
What is this? Your method bool type that checks values?
If the anwser is true than simply use two ifs:
if (checkTextboxes(sender))
{
if(checkRadiobuttons(sender))
{
....
}
}
but I'm not sure if I understand your problem right.

EDIT
I re-read your question and I'm still not sure what is your problem can you describe it a bit more clearly?
And place here that methods(functions) code.
Quote Originally Posted by makciek View Post
What is this? Your method bool type that checks values?
If the anwser is true than simply use two ifs:


but I'm not sure if I understand your problem right.

EDIT
I re-read your question and I'm still not sure what is your problem can you describe it a bit more clearly?
And place here that methods(functions) code.
if i go to my first function and if 1 textbox returns true (so it's not empty) and the checkbox is checked then it gives the output already. But it's possible only 1 of the 3 textboxes are returning true. the other ones returns false. so it may not show the ouput already.

- - - Updated - - -

omg i finally found it. had to rearrange many things to get it work hehe ! thanks for the help!
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us