Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SUBSTR(m.c, 1, m.lnY) vs LEFT(m.c, m.lnY)... Why?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00525954
Message ID:
00525961
Vues:
14
Thom,

They both resolve to extremely fast string manipulation routines in C++. The only speed difference you should be able to detect is that left() only takes two arguments vs the three for substr(). But I seriously doubt you'll see much performance differences.

>I keep seeing
>
>SUBSTR([string], 1, [width])
>
>
>instead of
>
>
>LEFT([string], [width])
>
>
>I've always assumed that the LEFT() command (with underlying C code) would be faster than interpreting (loosely speaking) the SUBSTR() command.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform