|
-
Jan 18th, 2008, 01:12 AM
#1
Thread Starter
Lively Member
[RESOLVED] String Break
If let's said i have a string variable.
Example
Str = "123456789132456789................" (a lot of datas)
so how can i break them up ??
Str = "12345678913456478
123456789"
I cannot do something like that in the above. So how can i make sure that they are still under the same variable of Str.
Thanks
-
Jan 18th, 2008, 01:22 AM
#2
Re: String Break
What do you mean by "break up"?
Display the String on a MultiLine Lable?
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Jan 18th, 2008, 02:47 AM
#3
Re: String Break
You need to have some sort of delimiter like...
"1;2;3;4;5;6"
then to store them in a string array just use split()
Code:
Dim str as string: str = "1;2;3;4;5;6"
Dim mystr() as String
mystr() = Split(str,";")
-
Jan 18th, 2008, 03:10 AM
#4
Re: String Break
Code:
Str = "12345678913456478" & vbNewLine & "123456789"
'--If it's too long:
Str = "12345678913456478" & vbNewLine & _
"123456789"
Last edited by anhn; Jan 18th, 2008 at 03:13 AM.
-
Jan 18th, 2008, 05:41 AM
#5
Lively Member
Re: String Break
or maybe you mean this?
VB Code:
Str = "12345678913456478" & _
"123456789"
by using this method, it will ensure you have all the data on the same Str variable.
good luck
-
Jan 20th, 2008, 09:41 PM
#6
Thread Starter
Lively Member
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
|