Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is faster: insert from memvar or insert fields?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01139366
Message ID:
01139508
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
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
>Yes, exactly. cEntered_User has GetUserID() as default (database SP to get user id based on machine name) and tEntered_Time is datetime(). If we do scatter, we need to release these two variables, so they would be re-calculated. I switched from scatter to insert fields in almost all the code (left just 3 scatter where we have too many fields to list).
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform