Normal Topic Checkbox statement (Read 534 times)
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Checkbox statement
Mar 2nd, 2009 at 7:23pm
Print Post Print Post  
Hello,
Looking to write a checkbox statement but unsure how to do it. I know 1 = true 0 = false -1 = undetermined

If (Dispatch0 = "Complete") and (FollowUp = 1)
     {
           If @Askuser("YOU CAN NOT USE COMPLETE ON A JOB WITH FOLLOW UP!","The follow up box is checked","Would you like to uncheck the follow up box?")
           {
                 FollowUp = 0
           }
     }

but that does not work.
Where is my mistake?

Thank you for the help.
Flip
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Checkbox statement
Reply #1 - Mar 2nd, 2009 at 9:16pm
Print Post Print Post  
I am not sure if Boolean display format makes any difference.  Have you set the Boolean display format to 1/0 or True/False or Yes/No? I believe that should not make any difference but just wondering.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Checkbox statement
Reply #2 - Mar 2nd, 2009 at 9:44pm
Print Post Print Post  
FlipGilbert wrote on Mar 2nd, 2009 at 7:23pm:
but that does not work.
Where is my mistake?

Define "does not work". What does it do? Do you see the @AskUser at all?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: Checkbox statement
Reply #3 - Mar 3rd, 2009 at 12:12am
Print Post Print Post  
hummmm, it is working now. I must have corrected something somewhere else. And yes I saved it before testing it!  Cheesy

Thank you both for your helpfulness.

My very best.
Flip
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged