M
MikeB
Please help me understand
The following test code
Option Compare Database
Option Explicit
Dim lDots As Long
Sub ExploreDBEngineX()
lDots = 0
Debug.Print "Hello Mike. Today is " & Date & " " & Time()
Open "VBA_Trace.txt" For Output As #1
'Print #1, "Enumerate DBEngine:"
Print #1, String(lDots, "."), "Enumerate DBEnginex"
Close 1
Debug.Print "End of Run."
End Sub
There are two Print statements. One is commented out, one is not.
If I run the code with the statement to print "Enumerate DBEnginex",
then there are 14 spaces prepended to the output line in the file. If
I look at the individual components of that Print statement with
Debug.Print the first one is a string of nothing (0 dots) and the
second is simply the text.
If I switch the commented and the uncommented Print statements, there
are no leading spaces in the output file.
What's going on here?
Thanks
The following test code
Option Compare Database
Option Explicit
Dim lDots As Long
Sub ExploreDBEngineX()
lDots = 0
Debug.Print "Hello Mike. Today is " & Date & " " & Time()
Open "VBA_Trace.txt" For Output As #1
'Print #1, "Enumerate DBEngine:"
Print #1, String(lDots, "."), "Enumerate DBEnginex"
Close 1
Debug.Print "End of Run."
End Sub
There are two Print statements. One is commented out, one is not.
If I run the code with the statement to print "Enumerate DBEnginex",
then there are 14 spaces prepended to the output line in the file. If
I look at the individual components of that Print statement with
Debug.Print the first one is a string of nothing (0 dots) and the
second is simply the text.
If I switch the commented and the uncommented Print statements, there
are no leading spaces in the output file.
What's going on here?
Thanks