A
Anja
Hi everyone,
I have a small function that is supposed to take a string and append it
to a text box. Nothing fancy..
So, the function looks like:
Private Sub AppendImportMessage(str As String)
ImportResult.SetFocus
ImportResult.Locked = False
ImportResult.Text = ImportResult.Text & str & vbNewLine
ImportResult.Locked = True
End Sub
Now, I call the function as follows:
AppendImportMessage "(" & str(insertedRecordNum) & ") record(s)
inserted."
AppendImportMessage "(" & str(skippedRecordNum) & ") record(s)
skipped."
the variables are both integers.
I see this as:
( 0) record(s) inserted.( 25) record(s) skipped.Import was successful.
So, no newline and notice the extra space between "(" and the integer
value!!
Can someone explain to me why it is being formatted this way?
Thanks,
Best,
Anja
I have a small function that is supposed to take a string and append it
to a text box. Nothing fancy..
So, the function looks like:
Private Sub AppendImportMessage(str As String)
ImportResult.SetFocus
ImportResult.Locked = False
ImportResult.Text = ImportResult.Text & str & vbNewLine
ImportResult.Locked = True
End Sub
Now, I call the function as follows:
AppendImportMessage "(" & str(insertedRecordNum) & ") record(s)
inserted."
AppendImportMessage "(" & str(skippedRecordNum) & ") record(s)
skipped."
the variables are both integers.
I see this as:
( 0) record(s) inserted.( 25) record(s) skipped.Import was successful.
So, no newline and notice the extra space between "(" and the integer
value!!
Can someone explain to me why it is being formatted this way?
Thanks,
Best,
Anja