Re: Inputbox Question
- From: "DenBorg" <den_borg@xxxxxxxxx>
- Date: 8 Jul 2005 09:29:54 -0700
Al Reid wrote:
>The only problem here is that using "" an place of vbNullString
>does *NOT* result in any "Bloat." In fact, once compiled, they
>both result in exactly the same executable. WinDiff sees no
>difference in the executables, other than the file date.
That is an incorrect assumption.
Create a new project, add a command button to Form1, and add the
following sub:
Private Sub Command1_Click()
Dim S As String
S = ""
End Sub
Copy the "S=" line so that there are 100 of them. Compile to
Project1.exe
Then replace all literal zero-length strings with either vbNullString
or with your own constant. Compile to Project2.exe.
The file size of Project1.exe and Project2.exe is different by 4K.
Using literal zero-length strings does induce bloat into your program,
and the decision is truly more than merely one of personal preference.
.
- Follow-Ups:
- Re: Inputbox Question
- From: Bob Butler
- 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
- Inputbox Question
- Prev by Date: Re: Need to select MANY files for my app
- Next by Date: Re: Inputbox Question
- Previous by thread: Re: Inputbox Question
- Next by thread: Re: Inputbox Question
- Index(es):