Click here to Skip to main content
16,011,949 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSorting and keeping an index Pin
MikeMarq29-Dec-06 10:31
MikeMarq29-Dec-06 10:31 
AnswerRe: Sorting and keeping an index Pin
Dave Kreskowiak29-Dec-06 10:39
mveDave Kreskowiak29-Dec-06 10:39 
AnswerRe: Sorting and keeping an index [modified] Pin
CPallini29-Dec-06 23:51
mveCPallini29-Dec-06 23:51 
Questionconnection string Pin
jds120729-Dec-06 10:26
jds120729-Dec-06 10:26 
AnswerRe: connection string Pin
Dave Kreskowiak29-Dec-06 10:37
mveDave Kreskowiak29-Dec-06 10:37 
AnswerRe: connection string Pin
Paul Conrad29-Dec-06 10:38
professionalPaul Conrad29-Dec-06 10:38 
QuestionName Backwards Pin
shotgun2129-Dec-06 10:13
shotgun2129-Dec-06 10:13 
AnswerRe: Name Backwards Pin
KevinMac29-Dec-06 13:45
KevinMac29-Dec-06 13:45 
Don't think of the name as a name but instead a collection of char's.

The StringBuilder object will take the text and allow you to reference each char in it using it's position in the array.

So when you create an newSB as new stringbuilder("abc")

what you really have is
newSB(0)=a
newSB(1)=b
newSB(2)=c

Now if we went old school(kind of)

you would create an arraylist newSA as new arrayList()

'This loads the ArrayList up
For ctr As Integer = 0 To Label1.Text.Length - 1
newSA.Add(Label1.Text.Substring(ctr, 1))
Next

' This unloads the ArrayList into a label stepping down the arraylist
For ctrOut As Integer = sa.Count - 1 To 0 Step -1
Label2.Text += newSA(ctrOut).ToString()
Next

This sounds very much like homework but you cannot just brush over this it is to important. What you are exploring is how the variables are really just memory locations and you can address them many different ways. To prove the point lets shrink the example.

' This unloads the TextBox into a label stepping down the String
For ctrOut As Integer = TextBox.Text.Length - 1 To 1 Step -1
Label2.Text += TextBox.Text.Substring(ctrOut, 1)
Next

So there you go a lengthy discussion on what strings are but if you are going to learn how to program get to the real meaning of what they are asking you to learn.

Hope this Helps
QuestionGenerating random numbers Pin
UncleMikey29-Dec-06 8:15
UncleMikey29-Dec-06 8:15 
AnswerRe: Generating random numbers Pin
CPallini29-Dec-06 8:36
mveCPallini29-Dec-06 8:36 
QuestionRe: Generating random numbers Pin
UncleMikey29-Dec-06 9:57
UncleMikey29-Dec-06 9:57 
AnswerRe: Generating random numbers Pin
CPallini29-Dec-06 10:13
mveCPallini29-Dec-06 10:13 
QuestionProgram wont run; already Published and installed Pin
Karma3125129-Dec-06 4:30
Karma3125129-Dec-06 4:30 
AnswerRe: Program wont run; already Published and installed Pin
Dave Kreskowiak29-Dec-06 9:26
mveDave Kreskowiak29-Dec-06 9:26 
GeneralRe: Program wont run; already Published and installed Pin
Karma3125129-Dec-06 9:29
Karma3125129-Dec-06 9:29 
GeneralRe: Program wont run; already Published and installed Pin
Dave Kreskowiak29-Dec-06 9:36
mveDave Kreskowiak29-Dec-06 9:36 
GeneralRe: Program wont run; already Published and installed Pin
Karma3125129-Dec-06 9:39
Karma3125129-Dec-06 9:39 
GeneralRe: Program wont run; already Published and installed Pin
Dave Kreskowiak29-Dec-06 15:04
mveDave Kreskowiak29-Dec-06 15:04 
QuestionCan I run vb or com components Pin
indian14329-Dec-06 1:58
indian14329-Dec-06 1:58 
AnswerRe: Can I run vb or com components Pin
Dave Kreskowiak29-Dec-06 3:25
mveDave Kreskowiak29-Dec-06 3:25 
QuestionDataGridView doesnot update in vb.net 2005 Express Edition Pin
Dharmit29-Dec-06 1:31
Dharmit29-Dec-06 1:31 
NewsHiEdit V1.0.1.4 Pin
akyprian28-Dec-06 21:36
akyprian28-Dec-06 21:36 
GeneralRe: HiEdit V1.0.1.4 Pin
Dave Kreskowiak29-Dec-06 3:24
mveDave Kreskowiak29-Dec-06 3:24 
GeneralRe: HiEdit V1.0.1.4 Pin
akyprian29-Dec-06 4:13
akyprian29-Dec-06 4:13 
GeneralRe: HiEdit V1.0.1.4 Pin
CPallini29-Dec-06 6:08
mveCPallini29-Dec-06 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.