Aug 29th, 2012, 03:23 AM
#1
Fanatic Member
Why does this add the text to a new line in the textbox?
Hi guys, I have a text box and for some reason when I run this code
Text2.Text = Text2.Text + field.Text & "'" & " " & statement.Text & " " & "'" & value.Text & "'"
when a command button is clicked it's adding field.Text & "'" & " " & statement.Text & " " & "'" & value.Text & "'" to a new line as apose to the same line.
any ideas why ?
Aug 29th, 2012, 03:29 AM
#2
Re: Why does this add the text to a new line in the textbox?
It should only do that if Text2 already included a crlf...
-tg
Aug 29th, 2012, 04:45 AM
#3
Re: Why does this add the text to a new line in the textbox?
....... or field.Text starts with a crlf
........or value.Text ends with a crlf (if Text2.Text starts of as null)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules