Khalid_Afridi
Registered User.
- Local time
- Today, 02:03
- Joined
- Jan 25, 2009
- Messages
- 491
How do you do this?
In a textbox1 if:
1. text length > 150 – including spacing
2. go to the 150th character
3. copy all the text starting from character 1 to 150
4. put them in a variable ‘txtText'
5. start from 151th character in the textbox till next 150th character
6. concatenate them with ‘txtText' with new two lines feed
7. repeat from step 1 till step 6 until last character of textbox1…
8. populate textbox2 with all together i.e after each 150th character there should be 2 line breaks and then start it from next remaining text till the end.
textbox1:
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
Textbox2:
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
Any idea
In a textbox1 if:
1. text length > 150 – including spacing
2. go to the 150th character
3. copy all the text starting from character 1 to 150
4. put them in a variable ‘txtText'
5. start from 151th character in the textbox till next 150th character
6. concatenate them with ‘txtText' with new two lines feed
7. repeat from step 1 till step 6 until last character of textbox1…
8. populate textbox2 with all together i.e after each 150th character there should be 2 line breaks and then start it from next remaining text till the end.
textbox1:
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
Textbox2:
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
The quick brown fox jumps right over the lazy dog
Any idea
