The text in a textbox is a String like any other String.
You append strings to other strings using the ampersand (i.e. &).
Code:
"Some Text " & aStringVariable & " some more text " & aTextBox.Text & " final bit of text " & str(anIntegerVariable)
Note that the Val() function converts the parameter passed to a numeric data type which is a waste of time when appending a string to a string (in this instance it would convert the String to a Double and then automatically convert that Double back to a String to append it to the String. Those two conversions are a waste).
|
__________________
There are no computers in heaven!
Last edited by DrPunk; 04-25-2012 at 06:29 AM.
|