Re: Inputbox Question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.


.



Relevant Pages

  • Re: Please any one suggest me some project ideas
    ... Windiff is one of the most useful development ... > doing a more intelligent compare of two programs' structure. ... his students' programming style might well ... > It's not quite a diff, but it's the same general idea. ...
    (comp.programming)
  • Re: GPO Settings Comparison
    ... windiff before I posted directly on the Pol files associated with the GPO's. ... compare diffs in Reg frags obtained from the Pol files. ... differences in two different GPO sets (the live and ...
    (microsoft.public.windows.group_policy)
  • Re: Please any one suggest me some project ideas
    ... >Write a program that will compare two or more source files ... Windiff is one of the most useful development ... doing a more intelligent compare of two programs' structure. ... It's not quite a diff, but it's the same general idea. ...
    (comp.programming)
  • Re: Comparing 2 files
    ... sample code that puts it in a string variable, ... Windiff will show the file is the same, but how can I call Windiff ... try "Option Compare Text" if your WinDiff ... Graphic formats are ...
    (microsoft.public.vb.general.discussion)
  • Re: Looking for smarter tools to compare the similarity between software
    ... similarity", ... compare the memory usage and allocation of two piece ... you could try disassembling and ... then using windiff on the disassemblies instead of on the sources. ...
    (comp.programming)