Prepare for your Next Interview
This is a discussion on How to print an array in Richtext box within the VB.NET forums, part of the Software Development category; Hi All, I want to print the elements of array in rich text box. And i want each element of array to be in new line. so i achieved tat ...
|
|||
|
How to print an array in Richtext box
Hi All,
I want to print the elements of array in rich text box. And i want each element of array to be in new line. so i achieved tat with this piece of code In sub routine arr(0) = "Here" arr(1) = "Pencils" arr(2) = "String" RichTextBox1.Text = (arr(0) & vbCrLf & arr(1) & vbcrlf & arr(2)) But if there are 100 elements, it will be too lengthy. So is there anyway that i can give the array address and it prints in new line. Say like RichTextBox1.Text = &arr or put in a if loop .??? I tried it but could not make it, Can anyone help me please....?? ![]() |
| The Following User Says Thank You to prakash.kudrekar For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: How to print an array in Richtext box
I tried like this
For i = 0 To 3 RichTextBox1.Text = (arr(i) & vbCrLf) i = i + 1 Next But the values are overlapping Mean only last array element is getting printed |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Validate Print button in webbased application | JobHelper | QTP | 3 | 07-15-2008 08:31 AM |
| Help on Dynamic Array | nancyphilips | C and C++ | 8 | 12-25-2007 09:59 AM |
| convert one dimansional array to two dimansional array | Geek_Guest | C and C++ | 6 | 12-22-2007 04:17 AM |
| I forget my print server password | Geek_Guest | PeopleSoft | 0 | 04-11-2007 01:40 PM |
| cursor to array. | Barbie | Oracle | 1 | 02-06-2007 08:57 AM |