Text box return
Text box return
(OP)
How do I enter a carriage return or next line in a text box?
The code I have is this:
What I want is:
Chosen_items is the name of the text box. This code is in a loop which adds items into the box as the user chooses them.
Currently the items appear in a sequential line one after another, this is very hard to read.
All suggestions are appreciated.
The code I have is this:
CODE
Chosen_items.Value = Chosen_items.Value & " " & Qty_Box.Value & " Each " & Part_Box.Value
CODE
Chosen_items.Value = Chosen_items.Value & {new line command here} & Qty_Box.Value & " Each " & Part_Box.Value
Chosen_items is the name of the text box. This code is in a loop which adds items into the box as the user chooses them.
Currently the items appear in a sequential line one after another, this is very hard to read.
All suggestions are appreciated.





RE: Text box return
If that does not work, add chr$(13) or chr$(10) (the ASCII characters for carriage return and linefeed )
RE: Text box return
CODE
Don't forget to set the Multiline property of the Chosen_Items textbox to True
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
UK steam enthusiasts: www.essexsteam.co.uk
RE: Text box return
Thanks to both.