Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

seperating text in a textbox 2

Status
Not open for further replies.

Newatprogramming

Technical User
Mar 5, 2002
30
0
0
US
I am trying to seperate the text in a textbox that has the properties set to multiple lines. What I want is to write a string that concatenate a string from other sources ( i.e. select case options..)

example::

dim str1 as string
dim str2 as string


str1= " The car manufacturer you have chosen is: "
str2= " Your vehicle type you have chosen:"

select case carMake
case 0
strCarMake = " Ford "
case 1
strCarMake = "GMC "
end select

select case vehType
case 0
strVehType = "SUV"
case 1
strVehType = "Pickup"
end select


txtbox.text= str1& "" &strCarMake

'*** Then in the same text box skip a row ***

txtbox.text= str2& "" &strVehType

' for example my textbox results will display

The car manufacturer you have chosen is: Ford
' a line is skipped
Your vehicle type you have chosen: SUV

Any help would be appreciated!!!

 
check out the vbCRLF string constant in the help files
 
Perfect!!!

You guys are great! Something I must have missed early in my studies.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top