|
-
Jul 13th, 2000, 12:08 AM
#1
Thread Starter
Junior Member
What Im trying to do is enter in a text using vb.
like
text1.text = "Hello" & [Enter code here] & "World"
it would turn out like this>
Hello
World
<
-
Jul 13th, 2000, 12:14 AM
#2
Fanatic Member
I belive you can use {ENTER} or Chr$(13) both are considered "enter"
Hope that helps,
D!m
-
Jul 13th, 2000, 12:16 AM
#3
no no no, use vbCrLf instead.
-
Jul 13th, 2000, 12:20 AM
#4
Fanatic Member
Or just listen to Dreamlax.
-
Jul 13th, 2000, 12:28 AM
#5
Thread Starter
Junior Member
Could you also tell me how to put a list into a text.
thanks
text1.text = list??
thanks
-
Jul 13th, 2000, 12:40 AM
#6
Fanatic Member
ummm...if your planing to have something like
Text1.Text = "Item1|Item2|Item3"
and if you have vb6 then you can probably use the Split():
Split(Text1.Text, "|")
I THINK that should work...give it ago unless someone post something better. (most likely will )
-
Jul 13th, 2000, 01:17 AM
#7
Thread Starter
Junior Member
I don't have VB6, And Im just trying to get the list into the text
-
Jul 13th, 2000, 02:18 AM
#8
Thread Starter
Junior Member
Thank you Dim and Dreamlax,
I fegured out how to put the list into the text using the "Next i"
I also used vbCrLf.
Thank you very much for your help, even if you don't give a damn.
Thank you for your time,
Some Newbie
-
Jul 13th, 2000, 02:25 AM
#9
Fanatic Member
Ofcourse we give a damn, 
That's what we're all here for.
Gl with your programming,
D!m
-
Jul 14th, 2000, 01:45 AM
#10
Code:
Text1.Text = "Hello World"
hello = Mid(Text1, 1, 5)
world = Mid(Text1, 6, 6)
List1.additem (hello)
List1.additem (world)
This code will take the string "Hello World" apart and add the two pieces into a list box.
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
|
Click Here to Expand Forum to Full Width
|