Best Practices: Space(0) or "" ?
Posted: Fri May 21, 2021 2:05 pm
When should we use Space(0) to represent an empty string ? Or should we use double quotes ?
Is there a situation where one is preferable over the other?
Is there a different answer for VO and X# ?
And if we're using double quotes, should those be double-double ("") or double-single (' ') ?
I once heard that the difference had something to do with run-time vs. compile-time and there was a speed and memory-overhead advantage to using the Space() function.
We get into these habits over the years and never really think about why we're doing things a certain way.
Thank you, everyone.
Is there a situation where one is preferable over the other?
Is there a different answer for VO and X# ?
And if we're using double quotes, should those be double-double ("") or double-single (' ') ?
I once heard that the difference had something to do with run-time vs. compile-time and there was a speed and memory-overhead advantage to using the Space() function.
We get into these habits over the years and never really think about why we're doing things a certain way.
Thank you, everyone.