Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox problem
Message
From
05/04/2000 18:34:01
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00355920
Message ID:
00355965
Views:
26
Hi Guys,

>INSERT INTO employee (checkbx) value (IIF(EMPTY(.pf1.p3.chkdrstmt.value), .f., .t.))
>In this case you don't care what type the checkbox.value is.

Whenever IIF returns a .T. and an .F. (any any order, it can be obviously simplified (and its faster):

INSERT INTO employee (checkbx) value (not EMPTY(.pf1.p3.chkdrstmt.value))

And aside from the Setting value to .F. intially, you can also Bind it yo a logical field.
Previous
Reply
Map
View

Click here to load this message in the networking platform