Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Side by side comparison (strings & local data)
Message
From
13/01/2004 06:26:17
 
 
To
13/01/2004 05:58:08
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00861648
Message ID:
00866284
Views:
45
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform