Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO - Find field ordinal
Message
From
27/06/2001 11:31:00
 
 
To
27/06/2001 03:12:32
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00523996
Message ID:
00524199
Views:
15
>I was reading that accessing a field object by ordinal is 400 % faster..
>
>For example:
>
>oRS.fields("name").value
>vs
>oRS.fields(0).value
>< snip >

I have to agree with John P here that the speed advantages may not be enough to account for the added code complexity and maintenance headaches in the future.

As per using ordinals, what I've done in some websites I wrote (ASP+VBS) is to convert the recordset to an array then traverse the array to create my report output:
oRS.MoveFirst()
aMyArray = oRS.GetRows()
...
...
for i=0 to UBound(aMyArray,2)
  'do whatever here...
next
HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform