Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is faster: insert from memvar or insert fields?
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01139366
Message ID:
01139513
Views:
12
>Your SSN validation is inefficient
>store (len(m.lcSSN) = 9) and ;
>	EMPTY(CHRTRAN(m.lcSSN, "0123456789","")) and ;
>	m.lcSSN <> "099999999" AND OCCURS(LEFT(m.lcSSN,1), m.lcSSN) < 9  ;
>	to llSSNOK
>return m.llSSNOK
>
Thanks. Is it the fastest algorithm here? I was just going to take a look and was thinking along the same lines.

What do you think about age? Is there a simpler way to find person's age in years?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform