Normal Topic Testing a Boolean value (Read 779 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Testing a Boolean value
Aug 30th, 2006 at 5:18pm
Print Post Print Post  
I have a couple Yes/No fields in my Q&A that have translated to text boxes with Boolean values.  I'd like to change these to check boxes.  What should I have my programming look for when I test the field?
  

**
Captain Infinity
Back to top
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: Testing a Boolean value
Reply #1 - Aug 30th, 2006 at 5:29pm
Print Post Print Post  
Infinity,
In the layout element adder, you can add a checkbox element that is bound to your existing boolean field. There is no programming required to do this, as the checkbox will pick up the existing value.

-Ben
  
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Testing a Boolean value
Reply #2 - Aug 30th, 2006 at 5:50pm
Print Post Print Post  
Thanks Ben, I've got that far.  But my Q&A programming performs a test on the value (to fire off other calculations) like this:
Code
Select All
If TIME_DEPENDENT = "YES"
Then ... 


But now all the yes's will be changed to check marks, so I can't test for that value any more.  I tried cutting and pasting a check mark from MS Word but it came out as Ö.   Undecided
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Testing a Boolean value
Reply #3 - Aug 30th, 2006 at 5:55pm
Print Post Print Post  
Hello Scott,

Any of the following will work to check the value of a check box...
Code
Select All
If CheckBox = YES Then ... 


Code
Select All
If CheckBox = TRUE Then ... 


Code
Select All
If CheckBox = 1 Then ... 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Testing a Boolean value
Reply #4 - Aug 30th, 2006 at 6:06pm
Print Post Print Post  
Thanks Ray.
  

**
Captain Infinity
Back to top
IP Logged