How do you write to a file so that each line does not have a beginning and ending quote?
What I have is:
' Open the file
Open "C:\VBFormControls\" & Me.Name & "_Controls.txt" For Output As #1
' Include all the Control types to add ToolTips to
For Each ctl In Controls
If (TypeOf ctl Is TextBox) Or _
(TypeOf ctl Is ComboBox) Or _
(TypeOf ctl Is ListBox) Or _
(TypeOf ctl Is VSFlexGrid) Or _
(TypeOf ctl Is ListView) _
Then
sLine = ctl.Name & ".ToolTip = """
Write #1, sLine
End If
Next
Close #1
In the file I get "Some text" rather that just:
Some text
What I have is:
' Open the file
Open "C:\VBFormControls\" & Me.Name & "_Controls.txt" For Output As #1
' Include all the Control types to add ToolTips to
For Each ctl In Controls
If (TypeOf ctl Is TextBox) Or _
(TypeOf ctl Is ComboBox) Or _
(TypeOf ctl Is ListBox) Or _
(TypeOf ctl Is VSFlexGrid) Or _
(TypeOf ctl Is ListView) _
Then
sLine = ctl.Name & ".ToolTip = """
Write #1, sLine
End If
Next
Close #1
In the file I get "Some text" rather that just:
Some text