Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SUBSTR(m.c, 1, m.lnY) vs LEFT(m.c, m.lnY)... Why?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00525954
Message ID:
00525961
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform