|
-
Nov 5th, 2002, 04:55 AM
#1
Thread Starter
Addicted Member
Split problem
I have a textbox with a lot off words and spaces with a length from about
200 charaters and spaces
i need to spilt them in lengths from about 50 chrs
i want to have a vbcrlf between this lengths
can someone thel my how to do that
Thanks in advance
-
Nov 5th, 2002, 08:14 AM
#2
Use mid(stringname,1,50) to get splits of 50.
TO add the vbCrlf, simply put
finalstring = mid(stringname,1,50) & vbCrlf & mid(stringname,51,100) & vbCrlf & mid(stringname,101,150) & vbcrl & mid(stringname,151,200) & vbcrl
Now, you'll have to piece it together because I couldn't understand exactly what you're looking for.
-
Nov 5th, 2002, 08:15 AM
#3
You should also consider posting in the General VB forums.
-
Nov 5th, 2002, 09:51 AM
#4
Banned
Probably get more awnsers there.....
-
Nov 5th, 2002, 09:52 AM
#5
Banned
Originally posted by mendhak
Now, you'll have to piece it together because I couldn't understand exactly what you're looking for.
I think he wants lines of 50 characters in a textbox
-
Nov 5th, 2002, 03:40 PM
#6
Originally posted by Michael_Kamen
I think he wants lines of 50 characters in a textbox
Give him the answer, man.
-
Nov 5th, 2002, 11:55 PM
#7
So Unbanned
For x = 1 to len(text) step 50
result = result & mid$(text,x,50) & vbnewline
next
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
|