Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why one code works, while other doesn't?
Message
From
23/01/2001 00:38:24
 
 
To
22/01/2001 17:13:54
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00466654
Message ID:
00467135
Views:
32
>Besides, I always thought that all the string chopping functions (left, right, substr()) are internally done as Stuff() with special parameters.

You might be right, but that would surprise me. In most languages a lot of care is taken with low-level string functions to make them run as fast as possible. I'd bet the C equivalents of LEFT(), RIGHT() and SUBSTR() are (a lot?) faster than a general-purpose STUFF(). If I was a language designer I wouldn't want to burden those functions with unnecessary overhead.

This is just a SWAG, I haven't actually tested in VFP (or C)...
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform