Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO - Find field ordinal
Message
De
27/06/2001 11:31:00
 
 
À
27/06/2001 03:12:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00523996
Message ID:
00524199
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform