Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select VFP vs SQL Server
Message
De
03/10/2014 16:52:18
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
18/09/2014 09:42:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01607580
Message ID:
01608760
Vues:
74
>While you're at it... long ago, I measured the if against assignment, and the assignment won... But that was back in VFP 5 or 6, so... can you compare this to your other measurements?
>
>
kcString = REPLICATE("a",100)
>a=SECONDS()
>FOR y = 1 TO 100000
>	lcstring = ""
>	lcComma=""
>	for x = 1 to 10
>	  lcString = m.lcString + lcComma+kcString
>	  lcComma=", "
>	endfor
>ENDFOR y
>?"create comma each time",SECONDS()-m.a
>
Here's one Gene Wirchenko from Foxite just sent me...
a=SECONDS()
FOR y = 1 TO 100000
	lcstring = kcString
	for x = 2 to 10
	  lcString = m.lcString + "," + kcString
	endfor
ENDFOR y
?"(Skip adding the last comma and having no if.)",SECONDS()-m.a
That seems completely workable, but my gut tells me it can't work for a do while loop. Can't put my finger on the problem.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform