| Sign In/My Account | View Cart |
| Article: |
Adding a Preferences Window to Your Application | |
| Subject: | Avoid insertion of empty record | |
| Date: | 2003-08-30 15:50:51 | |
| From: | anonymous2 | |
|
Response to: Avoid insertion of empty record
|
||
|
Cute, but too lugubrious. Use length and the logical or || operator. Will cost less code and will execute much faster. You've got && throughout your snippet - meaning the machine HAS to go through and evaluate each one.
|
||