Re: Check boxes : Boolean or longing ?

2019-11-29 Thread Chip Scheide via 4D_Tech
my experience - through v15
checkbox VARIABLES are numeric (longint), however, boolean FIELDS can be 
represented on a form by a checkbox.
in either case if you want the label for the checkbox to be on the left side 
enter a space as the title and then use a static text object for the label

Chip
> Hi all,
> 
> If I insert a check box  ‘MyCheckbox’ in a form with a expression 
> ‘Form.MyCheckbox’, this expression has a numerical value.
> If I declare on load Form.MyCheckbox:=True, it is a boolean.
> 
> I find counter-intuitive to have a boolean represented by a numeric 
> value and prefer to write If (MyCheckbox) instead of If (MyChebox = 
> 1).
> 
> What is your experience ?
> Is there a risk to declare it as boolean ?
> 
> Thanks for your advices.
> 
> Bernard Escaich
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

Hell is other people 
 Jean-Paul Sartre
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Check boxes : Boolean or longing ?

2019-11-29 Thread Pat Bensky via 4D_Tech
There is also now a three-state checkbox which can have a value of 0, 1,
or2 (False, True, or Unspecified).

On Fri, 29 Nov 2019 at 19:37, Bernard Escaich via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi all,
>
> If I insert a check box  ‘MyCheckbox’ in a form with a expression
> ‘Form.MyCheckbox’, this expression has a numerical value.
> If I declare on load Form.MyCheckbox:=True, it is a boolean.
>
> I find counter-intuitive to have a boolean represented by a numeric value
> and prefer to write If (MyCheckbox) instead of If (MyChebox = 1).
>
> What is your experience ?
> Is there a risk to declare it as boolean ?
>
> Thanks for your advices.
>
> Bernard Escaich
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Check boxes : Boolean or longing ?

2019-11-29 Thread Bernard Escaich via 4D_Tech
Hi all,

If I insert a check box  ‘MyCheckbox’ in a form with a expression 
‘Form.MyCheckbox’, this expression has a numerical value.
If I declare on load Form.MyCheckbox:=True, it is a boolean.

I find counter-intuitive to have a boolean represented by a numeric value and 
prefer to write If (MyCheckbox) instead of If (MyChebox = 1).

What is your experience ?
Is there a risk to declare it as boolean ?

Thanks for your advices.

Bernard Escaich




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**