Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Side by side comparison (strings & local data)
Message
De
13/01/2004 06:26:17
 
 
À
13/01/2004 05:58:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00861648
Message ID:
00866284
Vues:
44
Thomas

I could also do this I suppose:
for (int e = 1; e <= 10000; e++)
{
	//Employee ID
	Keys[0] = e ;

	//Get Boss ID from Employee
	Keys[0] = RowCol.Find(Keys)[SupCol] ;

	//Get Boss
	if ((int)Keys[0] > 0)
	{
		do 
		{
			Keys[0] = RowCol.Find(Keys)[SupCol] ;
		}
		while ((int)Keys[0] > 0) ;
	}
}
Takes it down to 0.09.
>Hi Kevin,
>
>>
>>	Keys[0] = BossRow["SuperiorId"] ;
>>
>
>getting the column number once should speed things up a bit...
>For looping AFAIK this is reccomended, since it eliminates
>the lookup of the column name.
>
>Similar to the eliminattion of the "eval" in the original
>vfp code...
>
>my 0.02 EUR
>
>thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform