Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace All
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00258351
Message ID:
00258373
Views:
9
>Hello,
>I was just going through some code in a FP2.6 program, and saw following code:
>REPLACE ALL MyField WITH NewValue FOR ThisField=ThatValue
>I know that the ALL is not necessary here, because the FOR will do the job already (to replace all).
>But my question is:
>Is the above code much slower than it would be without the ALL, or does FoxPro just not worry about the ALL.
>maybe someone knows the answer.
>Thank you for help.

I have tested - they are virtually the same in performance, so the ALL is redundant. In practice, it might make code a little more readable for a newbie, I suppose...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform