Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iif(lExp, .t., .f.)?
Message
From
22/01/2010 18:18:11
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01445223
Message ID:
01445579
Views:
35
>>In case of a checkbox, however, it did happen to me that I changed my mind about a logical field, and turned it into a n(1) - everything else about a checkbox worked, except code which relied on its .value being logical. Which is how I acquired the habit of using empty(this.value) for checkboxes.
>
>
IF EMPTY( THIS.VALUE )
is not a priori natural English, unless reading IF THIS VALUE IS EMPTY is an accurate wording of the functional design. A checked box is a checked box or a positive indication, but it is only seldomly a non-empty value. In other words, your example is not strong in my opinion.

Working on an app where some checkboxes bind to numeric and some to logical fields, this technique saves me a look into the table structure. IOW, the readability isn't the issue here, it's my time.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform