A
academic
When I declare a reference variable I initialize it to Nothing.
Now I'm wondering if that best for String variables - is "" better?
With Nothing I assume no memory is set aside nor GC'ed
But with "" it is - correct?
The system seems to handle a null the same as "".
For example:
s=A & "more text" 'Works the same if A=Nothing or A=""
Does this run the same code?
What about passing to a Windows API?
Is there a difference between passing "" and passing Nothing?
Thank you
Now I'm wondering if that best for String variables - is "" better?
With Nothing I assume no memory is set aside nor GC'ed
But with "" it is - correct?
The system seems to handle a null the same as "".
For example:
s=A & "more text" 'Works the same if A=Nothing or A=""
Does this run the same code?
What about passing to a Windows API?
Is there a difference between passing "" and passing Nothing?
Thank you