473,394 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Arrays (Please Help)

4
Hi!

Stupid question i know.How do i load 2 public arrays with inputed text and then send that values to a richtextbox for printing? I know the printing part. Just strugling with the array bit.

PLEASE HELP ME!
Its driving me MAD!
Jul 19 '06 #1
2 1260
Hi!

Stupid question i know.How do i load 2 public arrays with inputed text and then send that values to a richtextbox for printing? I know the printing part. Just strugling with the array bit.

PLEASE HELP ME!
Its driving me MAD!
i hope that will give some idea

dim str(3) as string ' An array of string with 3 indexes

Using an array is simple

str(0) = txtbox1.text
str(1) =txtbox2.text
str(2) =txtbox3.text
Jul 19 '06 #2
Hi!

Stupid question i know.How do i load 2 public arrays with inputed text and then send that values to a richtextbox for printing? I know the printing part. Just strugling with the array bit.

PLEASE HELP ME!
Its driving me MAD!
try the following

Dim Str1, Str2, Str3, Str4 As String

Str1 = "The is a test"
Str2 = "of string array concatenate example"
Str3 = "First Load the Array with strings"
Str4 = "Then load a string to pass to the rich text box"

Dim Array1()
Dim Array2()

Array1(0) = Str3
Array1(1) = Str4
Array2(0) = Str1
Array2(1) = Str2

Dim passstr As String

For i As Integer = 0 To 1
Select Case i
Case 0
passstr = Array1(0) & vbCrLf & Array1(1) & vbCrLf

Case 1
passstr = Array2(0) & vbCrLf & Array2(1) & vbCrLf

End Select
Next

Finally assign the passstr to the rich text box.

Have Fun ........
ArkDawg
Jul 19 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Bryce Maschino | last post by:
hello, i am trying to make a java program that will take several different arrays and search through them in a loop suchs as: for (i=0; i < 5; i++) { if (firstarray<such and such { blah blah
5
by: JezB | last post by:
What's the easiest way to concatenate arrays ? For example, I want a list of files that match one of 3 search patterns, so I need something like DirectoryInfo ld = new DirectoryInfo(searchDir);...
1
by: Kurt Richardson | last post by:
Hi all Sorry to bother you with what is probably a really trivial question for you C++ experts. My programming skill are pretty amateur, but I'm pretty good at VB.NET. However, I'm wanting to...
6
by: joelperr | last post by:
Hello, I am attempting to separate a two dimensional array into two one-dimensional arrays through a function. The goal of this is that, from the rest of the program, a data file consisting of...
8
by: scythetleppo | last post by:
I am new thanks for the help. I have a text file set up like this: word1a<tab>word2a<tab>word3a<tab>word4a word1b<tab>word2b<tab>word3b<tab>word4b word1c<tab>word2c<tab>word3c<tab>word4c I...
1
by: Anan18 | last post by:
write a program that declares three dimensional arrays named volts, current, and resistance. Each should be declared in main () and should be capable of holding ten double precision numbers. The...
4
by: selam | last post by:
I have this assignment using c++ please help me in writing a code. Suppose you have a main ( ) with three local arrays, all the same size and type (say float). The first two are already initialized...
4
by: Christian Maier | last post by:
Hi After surfing a while I have still trouble with this array thing. I have the following function and recive a Segmentation fault, how must I code this right?? Thanks Christian Maier
2
by: Dr Dav | last post by:
Hello all, I'm a physicist whose rewriting a numerical simulation, previously written in IDL, in C with the goal reducing runtime. As you may imagine, my C programming skills are quite poor but I...
110
by: fjm | last post by:
For some reason, I have always had a hard time understanding arrays as they pertain to php and databases. I understand associative arrays just fine but when there are multidimensional arrays, I kinda...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.