Re: Inputbox Question
- From: erewhon@xxxxxxxxxx (J French)
- Date: Sat, 9 Jul 2005 12:06:05 +0000 (UTC)
On Fri, 8 Jul 2005 13:07:54 -0400, "Al Reid"
<areidjr@xxxxxxxxxxxxxxxx> wrote:
<snip>
>In my case, I used WinDiff to compare the files AND went as far as running a disassembler and comparing the code visually. They are
>identical.
>
>In the case of a boolean compare (a = "")' vs. (a = vbNullString) they both compare a to "0".
>
>So as far as I can see, the compiler optimizes them both to the same machine code.
I did some tests on this a few months ago
The results were a bit spooky
An unititialized string - just Dimmed - is a vbNullString
set it to "" and it is different
Use VarPtr and StrPtr to check that
Personally I would suggest that one does not use vbNullString unless
one is acutely aware of what one is doing.
.
- Follow-Ups:
- Re: Inputbox Question
- From: Michael C
- Re: Inputbox Question
- References:
- Inputbox Question
- From: A P
- Re: Inputbox Question
- From: Michael Cole
- Re: Inputbox Question
- From: DenBorg
- Re: Inputbox Question
- From: Bob Butler
- Re: Inputbox Question
- From: DenBorg
- Re: Inputbox Question
- From: Bob Butler
- Re: Inputbox Question
- From: DenBorg
- Re: Inputbox Question
- From: Bob Butler
- Re: Inputbox Question
- From: DenBorg
- Re: Inputbox Question
- From: Al Reid
- Re: Inputbox Question
- From: DenBorg
- Re: Inputbox Question
- From: Bob Butler
- Re: Inputbox Question
- From: Rick Rothstein
- Re: Inputbox Question
- From: Al Reid
- Inputbox Question
- Prev by Date: Re: How to trap the X in the control box
- Next by Date: Re: Need to select MANY files for my app
- Previous by thread: Re: Inputbox Question
- Next by thread: Re: Inputbox Question
- Index(es):
Relevant Pages
|